istassiy commited on
Commit
7d6731a
·
1 Parent(s): 40d8d53

commit from

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,5 +89,5 @@ else:
89
  )
90
  results = get_top_predictions(raw_predictions[0][0].numpy())
91
  st.markdown("The following are probabilities for paper topics:")
92
- for topic, prob in sorted(results.items(), lambda item: item[1], reverse=True):
93
  st.markdown(f"{topic}: {prob}")
 
89
  )
90
  results = get_top_predictions(raw_predictions[0][0].numpy())
91
  st.markdown("The following are probabilities for paper topics:")
92
+ for topic, prob in sorted(results.items(), key=lambda item: item[1], reverse=True):
93
  st.markdown(f"{topic}: {prob}")