Spaces:
Sleeping
Sleeping
Update tasks/text.py
Browse files- 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
|