kdevoe commited on
Commit
453b861
1 Parent(s): 61cfeda

Update inference.py

Browse files
Files changed (1) hide show
  1. 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', map_location=torch.device(device))
28
- tokenizer = torch.load(saved_model_path + 'fine-tuned-tokenizer.pt', map_location=torch.device(device))
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__":