Spaces:
Sleeping
Sleeping
rounding
Browse files
app.py
CHANGED
@@ -155,6 +155,7 @@ def greet(X, ny):
|
|
155 |
cnt+=1
|
156 |
val = val - torch.log(probs[idx[cnt]])
|
157 |
val = val/num_sub_tokens_label
|
|
|
158 |
|
159 |
# print(er)
|
160 |
# astr = ""
|
|
|
155 |
cnt+=1
|
156 |
val = val - torch.log(probs[idx[cnt]])
|
157 |
val = val/num_sub_tokens_label
|
158 |
+
val = round(val, 2)
|
159 |
|
160 |
# print(er)
|
161 |
# astr = ""
|