ilushado commited on
Commit
1edf728
·
1 Parent(s): 0421ede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 += str(el) + " : " + str(probs[el]) + "\n"
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