NaolTaye commited on
Commit
cd856ca
·
1 Parent(s): 9fc9fcb
Files changed (1) hide show
  1. 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, p.numpy())
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