Update app.py
Browse files
app.py
CHANGED
@@ -75,8 +75,9 @@ def predict(new_sentence):
|
|
75 |
st.write('Input', namestr(new_sentence, globals()),': \n', new_sentence)
|
76 |
# Remove the namestr(new_sentence, globals()) in case of an error
|
77 |
st.write('Predicted Class: ', prediction,'\n----------------------------------\n')
|
78 |
-
|
79 |
-
predict(text)
|
|
|
80 |
|
81 |
|
82 |
|
|
|
75 |
st.write('Input', namestr(new_sentence, globals()),': \n', new_sentence)
|
76 |
# Remove the namestr(new_sentence, globals()) in case of an error
|
77 |
st.write('Predicted Class: ', prediction,'\n----------------------------------\n')
|
78 |
+
if st.button('Analyze'):
|
79 |
+
predict(text)
|
80 |
+
|
81 |
|
82 |
|
83 |
|