Spaces:
Runtime error
Runtime error
wrapper228
commited on
Commit
•
7e51dc1
1
Parent(s):
3ea75ed
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def predict_topic_by_title_and_abstract(text):
|
|
18 |
i = 0
|
19 |
while sum <= 95:
|
20 |
prob, label = ans[i]
|
21 |
-
st.write("it's topic \"" label + "\" with probability "+ str(np.round(prob,1)) + "%")
|
22 |
sum += prob
|
23 |
i += 1
|
24 |
|
|
|
18 |
i = 0
|
19 |
while sum <= 95:
|
20 |
prob, label = ans[i]
|
21 |
+
st.write("it's topic \"" + label + "\" with probability "+ str(np.round(prob,1)) + "%")
|
22 |
sum += prob
|
23 |
i += 1
|
24 |
|