ilushado commited on
Commit
72e9f79
·
1 Parent(s): 1edf728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.markdown(str_ans)
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