oracat commited on
Commit
670de19
·
1 Parent(s): f02578a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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(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)
 
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)