Ashed00 commited on
Commit
31beafc
·
verified ·
1 Parent(s): b2c22cd

Update app.py

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