Spaces:
Runtime error
Runtime error
Commit ·
dd32181
1
Parent(s): 6d77f28
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def predict_topic_by_title_and_abstract(text, model):
|
|
| 22 |
i = 0
|
| 23 |
while sum <= 95:
|
| 24 |
prob, label = ans[i]
|
| 25 |
-
st.write("it's topic \"" + label + "\" with probability "+ str(np.round(prob,1)) + "%")
|
| 26 |
sum += prob
|
| 27 |
i += 1
|
| 28 |
|
|
|
|
| 22 |
i = 0
|
| 23 |
while sum <= 95:
|
| 24 |
prob, label = ans[i]
|
| 25 |
+
st.write("it's topic \"" + str(label) + "\" with probability "+ str(np.round(prob,1)) + "%")
|
| 26 |
sum += prob
|
| 27 |
i += 1
|
| 28 |
|