Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,9 +132,9 @@ if st.button("Посмотреть топ"):
|
|
| 132 |
probs = ans[0].softmax(dim=0)
|
| 133 |
str_ans = ''
|
| 134 |
for el in elems:
|
| 135 |
-
str_ans += idx_to_tag[el] + " : " + str(probs[el].item()) + "\n"
|
| 136 |
|
| 137 |
-
st.
|
| 138 |
|
| 139 |
|
| 140 |
|
|
|
|
| 132 |
probs = ans[0].softmax(dim=0)
|
| 133 |
str_ans = ''
|
| 134 |
for el in elems:
|
| 135 |
+
str_ans += idx_to_tag[el] + " : " + str(round(probs[el].item(), 2)) + "\n"
|
| 136 |
|
| 137 |
+
st.write(str_ans)
|
| 138 |
|
| 139 |
|
| 140 |
|