Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,7 +132,7 @@ if st.button("Посмотреть топ"):
|
|
| 132 |
probs = ans[0].softmax(dim=0)
|
| 133 |
str_ans = ''
|
| 134 |
for el in elems:
|
| 135 |
-
str_ans +=
|
| 136 |
|
| 137 |
st.markdown(str_ans)
|
| 138 |
|
|
|
|
| 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.markdown(str_ans)
|
| 138 |
|