Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ if st.button("Analyze Sentiment"):
|
|
66 |
with cols[1]:
|
67 |
st.markdown("**Confidence Scores**")
|
68 |
for i, (label, score) in enumerate(zip(output_names, probabilities)):
|
69 |
-
st.progress(score, text=f"{label}: {score:.1%}")
|
70 |
|
71 |
# Generate SHAP explanations
|
72 |
st.subheader("🔍 Explanation")
|
|
|
66 |
with cols[1]:
|
67 |
st.markdown("**Confidence Scores**")
|
68 |
for i, (label, score) in enumerate(zip(output_names, probabilities)):
|
69 |
+
st.progress(float(score), text=f"{label}: {score:.1%}")
|
70 |
|
71 |
# Generate SHAP explanations
|
72 |
st.subheader("🔍 Explanation")
|