timagonch commited on
Commit
35dc479
·
verified ·
1 Parent(s): a3e51e2

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,8 +116,8 @@ if st.button("Classify", type="primary") and text.strip():
116
  st.markdown(f"## :{color}[{label}]")
117
  st.divider()
118
 
119
- st.write("**Confidence scores:**")
120
  for name, score in sorted(result["scores"].items(), key=lambda x: -x[1]):
121
- st.progress(float(score), text=f"{name}: {score:.1%}")
122
 
123
  log_prediction(text, result)
 
116
  st.markdown(f"## :{color}[{label}]")
117
  st.divider()
118
 
119
+ st.write("**Similarity scores:**")
120
  for name, score in sorted(result["scores"].items(), key=lambda x: -x[1]):
121
+ st.progress(float(score), text=name)
122
 
123
  log_prediction(text, result)