Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,14 @@ def predict_sentiment(text):
|
|
| 123 |
|
| 124 |
if st.button("Submit"):
|
| 125 |
if Message.strip()=="":
|
| 126 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
else:
|
| 128 |
Message = preprocess_text(Message)
|
| 129 |
result = predict_sentiment(Message)
|
|
|
|
| 123 |
|
| 124 |
if st.button("Submit"):
|
| 125 |
if Message.strip()=="":
|
| 126 |
+
st.markdown(
|
| 127 |
+
"""
|
| 128 |
+
<div style='background-color: #f8d7da; padding: 10px; border-radius: 5px;'>
|
| 129 |
+
<h4 style='color: #721c24;'> ⚠️ Plese enther Message📩 </h4>
|
| 130 |
+
</div>
|
| 131 |
+
""",
|
| 132 |
+
unsafe_allow_html=True
|
| 133 |
+
)
|
| 134 |
else:
|
| 135 |
Message = preprocess_text(Message)
|
| 136 |
result = predict_sentiment(Message)
|