Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
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("**
|
| 120 |
for name, score in sorted(result["scores"].items(), key=lambda x: -x[1]):
|
| 121 |
-
st.progress(float(score), text=
|
| 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)
|