NimaKL commited on
Commit
d36a890
Β·
1 Parent(s): 24f4f25

Update app.py

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