Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ if st.button('Load Model'):
|
|
69 |
st.header(pred)
|
70 |
|
71 |
#st.write('Input', namestr(new_sentence, globals()),': \n', new_sentence)
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
st.success()
|
|
|
69 |
st.header(pred)
|
70 |
|
71 |
#st.write('Input', namestr(new_sentence, globals()),': \n', new_sentence)
|
72 |
+
with col2:
|
73 |
+
text = st.text_input("Enter the text you'd like to analyze for spam.")
|
74 |
+
if text or st.button('Analyze'):
|
75 |
+
predict(text)
|
76 |
st.success()
|