ki33elev commited on
Commit
f05ebed
1 Parent(s): 2c5279b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ def predict(title, summary, tokenizer, model):
36
  @st.cache(suppress_st_warning=True)
37
  def get_results(prediction, prediction_probs):
38
  ans = "Topic:\t\tConfidence:\n"
39
- for (class, prob) in zip(prediction, prediction_probs):
40
- ans += class + "\t\t" + str(prob) + "\n"
41
  return ans
42
 
43
  st.title("Arxiv articles classification")
 
36
  @st.cache(suppress_st_warning=True)
37
  def get_results(prediction, prediction_probs):
38
  ans = "Topic:\t\tConfidence:\n"
39
+ for (topic, prob) in zip(prediction, prediction_probs):
40
+ ans += topic + "\t\t" + str(prob) + "\n"
41
  return ans
42
 
43
  st.title("Arxiv articles classification")