Ahmad-Moiz commited on
Commit
738eec2
·
1 Parent(s): f0603d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,13 +27,13 @@ if st.button("Analyze Sentiment 🚀", key="analyze_button", help="Click to anal
27
  st.write(f"**Sentiment:** {sentiment_label}")
28
  st.write(f"**Confidence Score:** {sentiment_score:.2f}")
29
 
30
- # Colorful styled button
31
  if sentiment_label == "positive":
32
- button_color = "#33cc33" # green color for positive sentiment
33
  elif sentiment_label == "negative":
34
  button_color = "#ff3333" # red color for negative sentiment
35
  else:
36
- button_color = "#3399ff" # blue color for neutral sentiment
37
 
38
  st.markdown(
39
  f'<a style="background-color:{button_color};color:white;text-decoration:none;padding:8px 12px;'
 
27
  st.write(f"**Sentiment:** {sentiment_label}")
28
  st.write(f"**Confidence Score:** {sentiment_score:.2f}")
29
 
30
+ # Set button colors based on sentiment
31
  if sentiment_label == "positive":
32
+ button_color = "#3399ff" # blue color for positive sentiment
33
  elif sentiment_label == "negative":
34
  button_color = "#ff3333" # red color for negative sentiment
35
  else:
36
+ button_color = "#ff66cc" # pink color for neutral sentiment
37
 
38
  st.markdown(
39
  f'<a style="background-color:{button_color};color:white;text-decoration:none;padding:8px 12px;'