sumesh4C commited on
Commit
6152e94
·
verified ·
1 Parent(s): aafde80

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. tasks/text.py +1 -1
tasks/text.py CHANGED
@@ -102,7 +102,7 @@ async def evaluate_text(request: TextEvaluationRequest):
102
  current_dir = os.path.dirname(current_file_path)
103
 
104
  # model_nn = torch.load(os.path.join(current_dir,"model_nn.pth"), map_location=device)
105
- model_nn = torch.load(os.path.join(current_dir,"model_nn_scripted.pth"), map_location=device)
106
 
107
 
108
  # Set the model to evaluation mode
 
102
  current_dir = os.path.dirname(current_file_path)
103
 
104
  # model_nn = torch.load(os.path.join(current_dir,"model_nn.pth"), map_location=device)
105
+ model_nn = torch.jit.load(os.path.join(current_dir,"model_nn_scripted.pth"), map_location=device)
106
 
107
 
108
  # Set the model to evaluation mode