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