Taoheed-O commited on
Commit
ffddcd3
1 Parent(s): 69705e3
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,12 +49,12 @@ def main():
49
  st.success("You picked {}".format(options))
50
  # the following lines create text boxes in which the user can enter
51
  # the data required to make the prediction
52
- text = st.text_input("Review:", "Type your review here")
53
 
54
  if st.button('Predict'):
55
  result = prediction(text)
56
  if result == 0:
57
- st.success('This is not a spam mail/sms.'.format(result))
58
  else:
59
  st.error('This is a spam mail/sms.'.format(result))
60
  else:
 
49
  st.success("You picked {}".format(options))
50
  # the following lines create text boxes in which the user can enter
51
  # the data required to make the prediction
52
+ text = st.text_input("Mail:", "Type/Paste your mail/sms here")
53
 
54
  if st.button('Predict'):
55
  result = prediction(text)
56
  if result == 0:
57
+ st.success('This is not a spam mail/sms!.'.format(result))
58
  else:
59
  st.error('This is a spam mail/sms.'.format(result))
60
  else: