Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ def predict(title, summary, tokenizer, model):
|
|
36 |
@st.cache(suppress_st_warning=True)
|
37 |
def get_results(prediction, prediction_probs):
|
38 |
ans = "Topic:\t\tConfidence:\n"
|
39 |
-
for (
|
40 |
-
ans +=
|
41 |
return ans
|
42 |
|
43 |
st.title("Arxiv articles classification")
|
|
|
36 |
@st.cache(suppress_st_warning=True)
|
37 |
def get_results(prediction, prediction_probs):
|
38 |
ans = "Topic:\t\tConfidence:\n"
|
39 |
+
for (topic, prob) in zip(prediction, prediction_probs):
|
40 |
+
ans += topic + "\t\t" + str(prob) + "\n"
|
41 |
return ans
|
42 |
|
43 |
st.title("Arxiv articles classification")
|