wrapper228 commited on
Commit
dd32181
1 Parent(s): 6d77f28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def predict_topic_by_title_and_abstract(text, model):
22
  i = 0
23
  while sum <= 95:
24
  prob, label = ans[i]
25
- st.write("it's topic \"" + label + "\" with probability "+ str(np.round(prob,1)) + "%")
26
  sum += prob
27
  i += 1
28
 
 
22
  i = 0
23
  while sum <= 95:
24
  prob, label = ans[i]
25
+ st.write("it's topic \"" + str(label) + "\" with probability "+ str(np.round(prob,1)) + "%")
26
  sum += prob
27
  i += 1
28