Spaces:
Runtime error
Runtime error
Updated
Browse files
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("
|
53 |
|
54 |
if st.button('Predict'):
|
55 |
result = prediction(text)
|
56 |
if result == 0:
|
57 |
-
st.success('This is not a spam mail/sms
|
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:
|