Spaces:
Runtime error
Runtime error
commit from
Browse files
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}")
|