Update inference.py
Browse files- inference.py +2 -2
inference.py
CHANGED
@@ -24,8 +24,8 @@ class DebertaEvaluator(nn.Module):
|
|
24 |
|
25 |
def inference():
|
26 |
saved_model_path = './'
|
27 |
-
model = torch.load(saved_model_path + 'fine-tuned-model.pt'
|
28 |
-
tokenizer = torch.load(saved_model_path + 'fine-tuned-tokenizer.pt'
|
29 |
model.eval()
|
30 |
|
31 |
if __name__ == "__main__":
|
|
|
24 |
|
25 |
def inference():
|
26 |
saved_model_path = './'
|
27 |
+
model = torch.load(saved_model_path + 'fine-tuned-model.pt')
|
28 |
+
tokenizer = torch.load(saved_model_path + 'fine-tuned-tokenizer.pt')
|
29 |
model.eval()
|
30 |
|
31 |
if __name__ == "__main__":
|