Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,10 +130,11 @@ if len(text.strip()) > 0:
|
|
| 130 |
else:
|
| 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(
|
| 134 |
[
|
| 135 |
f"{item['label']} *(score {item['score']:.2f})*"
|
| 136 |
for item in results[1:]
|
| 137 |
]
|
| 138 |
)
|
|
|
|
| 139 |
st.markdown(out_text)
|
|
|
|
| 130 |
else:
|
| 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\n(Other fitting categories are " + " and ".join(
|
| 134 |
[
|
| 135 |
f"{item['label']} *(score {item['score']:.2f})*"
|
| 136 |
for item in results[1:]
|
| 137 |
]
|
| 138 |
)
|
| 139 |
+
out_text += ".)"
|
| 140 |
st.markdown(out_text)
|