Adityaganesh commited on
Commit
45f0c94
Β·
verified Β·
1 Parent(s): cc81276

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -144,13 +144,13 @@ if st.button("πŸ” Analyze Sentiment"):
144
  idx = int(result['label'].split('_')[1])
145
 
146
  if idx == 0:
147
- sentiment = "😐 Neutral"
148
  color = "gray"
149
  elif idx == 1:
150
- sentiment = "😊 Positive"
151
  color = "green"
152
  else:
153
- sentiment = "😠 Negative"
154
  color = "red"
155
 
156
- st.markdown(f"### Prediction: <span style='color:{color}'>{sentiment}</span>", unsafe_allow_html=True)
 
144
  idx = int(result['label'].split('_')[1])
145
 
146
  if idx == 0:
147
+ sentiment = " Neutral"
148
  color = "gray"
149
  elif idx == 1:
150
+ sentiment = " Positive"
151
  color = "green"
152
  else:
153
+ sentiment = " Negative"
154
  color = "red"
155
 
156
+ st.markdown(f"### Prediction: <span style='color:#1affff'>{sentiment}</span>",unsafe_allow_html=True)