Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def predict(title, abstract):
|
|
36 |
break
|
37 |
return preds
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
st.text(f"{topic}: {proba*100:.0f}%")
|
|
|
36 |
break
|
37 |
return preds
|
38 |
|
39 |
+
output = predict(title, abstract)
|
40 |
+
st.text("Top 95% topics:")
|
41 |
+
for topic, proba in output:
|
42 |
st.text(f"{topic}: {proba*100:.0f}%")
|