Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
|
@@ -71,5 +71,6 @@ class EndpointHandler:
|
|
| 71 |
return_tensors='pt')
|
| 72 |
_, prediction = self.model(item["input_ids"], item["attention_mask"])
|
| 73 |
prediction = prediction.cpu().detach().numpy()
|
|
|
|
| 74 |
return prediction
|
| 75 |
|
|
|
|
| 71 |
return_tensors='pt')
|
| 72 |
_, prediction = self.model(item["input_ids"], item["attention_mask"])
|
| 73 |
prediction = prediction.cpu().detach().numpy()
|
| 74 |
+
print(text, prediction)
|
| 75 |
return prediction
|
| 76 |
|