saritha commited on
Commit
43e9c56
·
verified ·
1 Parent(s): 4778467

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- 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:
 
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: