nomsgadded
commited on
Commit
•
d91e0f8
1
Parent(s):
b0143d9
Upload Inference_Restaurant_Review.py
Browse files
Inference_Restaurant_Review.py
CHANGED
@@ -25,7 +25,7 @@ def inference(text):
|
|
25 |
with torch.no_grad():
|
26 |
logits = model(**inputs).logits
|
27 |
predicted_class_id = logits.argmax().item()
|
28 |
-
print(predicted_class_id)
|
29 |
|
30 |
inference(text1)
|
31 |
inference(text2)
|
|
|
25 |
with torch.no_grad():
|
26 |
logits = model(**inputs).logits
|
27 |
predicted_class_id = logits.argmax().item()
|
28 |
+
print((predicted_class_id+2)/2)
|
29 |
|
30 |
inference(text1)
|
31 |
inference(text2)
|