Spaces:
Runtime error
Runtime error
Abdulmohsena
commited on
Update Fluency_Score.py
Browse files- Fluency_Score.py +1 -1
Fluency_Score.py
CHANGED
@@ -40,7 +40,7 @@ class Fluency_Score(evaluate.Measurement):
|
|
40 |
max_length=128
|
41 |
).to(device)
|
42 |
|
43 |
-
with torch.
|
44 |
output = self.model(**inputs)
|
45 |
prediction = output.logits.clip(0, 1)
|
46 |
|
|
|
40 |
max_length=128
|
41 |
).to(device)
|
42 |
|
43 |
+
with torch.inference_mode():
|
44 |
output = self.model(**inputs)
|
45 |
prediction = output.logits.clip(0, 1)
|
46 |
|