Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,7 @@ from HGTrainer import RobertaForValNovRegression, ValNovOutput
|
|
9 |
|
10 |
@torch.no_grad()
|
11 |
def classify(model, premise, conclusion):
|
12 |
-
model_path = "
|
13 |
-
"ConclusionValidityNoveltyClassifier-Augmentation/tree/main/models/"
|
14 |
if model == "model trained only with task-internal data":
|
15 |
model_path += "task-internal-model--750-wo-synthetic"
|
16 |
elif model == "model trained with 1k task-external+synthetic data":
|
@@ -18,7 +17,7 @@ def classify(model, premise, conclusion):
|
|
18 |
elif model == "model trained with 10k task-internal-external-synthetic data":
|
19 |
model_path += "task-internal-external-model--10k-synthetic"
|
20 |
elif model == "model trained with 750 task-internal-synthetic data":
|
21 |
-
model_path += "
|
22 |
|
23 |
hg_model: RobertaForValNovRegression = RobertaForValNovRegression.from_pretrained(model_path)
|
24 |
hg_model.loss = "ignore"
|
|
|
9 |
|
10 |
@torch.no_grad()
|
11 |
def classify(model, premise, conclusion):
|
12 |
+
model_path = "pheinisch/"
|
|
|
13 |
if model == "model trained only with task-internal data":
|
14 |
model_path += "task-internal-model--750-wo-synthetic"
|
15 |
elif model == "model trained with 1k task-external+synthetic data":
|
|
|
17 |
elif model == "model trained with 10k task-internal-external-synthetic data":
|
18 |
model_path += "task-internal-external-model--10k-synthetic"
|
19 |
elif model == "model trained with 750 task-internal-synthetic data":
|
20 |
+
model_path += "ConclusionValidityNoveltyClassifier-Augmentation-in_syn_750"
|
21 |
|
22 |
hg_model: RobertaForValNovRegression = RobertaForValNovRegression.from_pretrained(model_path)
|
23 |
hg_model.loss = "ignore"
|