Spaces:
Sleeping
Sleeping
update
Browse files- tasks/text.py +2 -1
tasks/text.py
CHANGED
@@ -99,8 +99,9 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
99 |
|
100 |
# Forward pass through the model
|
101 |
p = model(**tokenized_inputs)
|
|
|
102 |
print(p)
|
103 |
-
predictions = np.append(predictions,
|
104 |
|
105 |
print("Finished prediction run")
|
106 |
|
|
|
99 |
|
100 |
# Forward pass through the model
|
101 |
p = model(**tokenized_inputs)
|
102 |
+
output = torch.argmax(p.logits, dim=1).cpu().numpy()
|
103 |
print(p)
|
104 |
+
predictions = np.append(predictions, output)
|
105 |
|
106 |
print("Finished prediction run")
|
107 |
|