Update app.py
Browse files
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 = "
|
| 148 |
color = "gray"
|
| 149 |
elif idx == 1:
|
| 150 |
-
sentiment = "
|
| 151 |
color = "green"
|
| 152 |
else:
|
| 153 |
-
sentiment = "
|
| 154 |
color = "red"
|
| 155 |
|
| 156 |
-
st.markdown(f"### Prediction: <span style='color
|
|
|
|
| 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)
|