Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,6 +131,9 @@ if len(text.strip()) > 0:
|
|
| 131 |
out_text = f"This paper is likely to be from the category **{results[0]['label']}** *(score {results[0]['score']:.2f})*."
|
| 132 |
if len(results) > 1:
|
| 133 |
out_text += "\n(Alternative categories are " + " and ".join(
|
| 134 |
-
[
|
|
|
|
|
|
|
|
|
|
| 135 |
)
|
| 136 |
st.markdown(out_text)
|
|
|
|
| 131 |
out_text = f"This paper is likely to be from the category **{results[0]['label']}** *(score {results[0]['score']:.2f})*."
|
| 132 |
if len(results) > 1:
|
| 133 |
out_text += "\n(Alternative categories are " + " and ".join(
|
| 134 |
+
[
|
| 135 |
+
f"{item['label']} *(score {item['score']:.2f})*"
|
| 136 |
+
for item in results[1:]
|
| 137 |
+
]
|
| 138 |
)
|
| 139 |
st.markdown(out_text)
|