Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,9 @@ st.write("Enter the email content below:")
|
|
| 35 |
|
| 36 |
user_input = st.text_area("Email Content")
|
| 37 |
|
| 38 |
-
|
| 39 |
-
result =
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
|
|
|
|
| 35 |
|
| 36 |
user_input = st.text_area("Email Content")
|
| 37 |
|
| 38 |
+
result = predict_sentence(user_input, wordvect_model, classifier_model)
|
| 39 |
+
if result == "spam":
|
| 40 |
+
st.markdown(f"<p style='color:red; font-size:20px; font-weight:bold;'>The email is classified as: {result}</p>", unsafe_allow_html=True)
|
| 41 |
+
else:
|
| 42 |
+
st.markdown(f"<p style='color:green; font-size:20px; font-weight:bold;'>The email is classified as: {result}</p>", unsafe_allow_html=True)
|
| 43 |
|