ferdmartin commited on
Commit
a77cc5d
·
1 Parent(s): 7713a65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -154,9 +154,8 @@ def main():
154
  if st.button("Let's check this text!"):
155
  if text.strip() == "":
156
  st.error("Please enter some text")
157
- else:
158
-
159
- app_model(option, model, text)
160
  # Print result
161
  #st.markdown(f"I think this text is: **:{st.session_state['color_pred']}[{st.session_state['prediction']}]** (Prediction probability: {st.session_state['predict_proba'] * 100}%)")
162
 
 
154
  if st.button("Let's check this text!"):
155
  if text.strip() == "":
156
  st.error("Please enter some text")
157
+ else:
158
+ app_model(option, model, text)
 
159
  # Print result
160
  #st.markdown(f"I think this text is: **:{st.session_state['color_pred']}[{st.session_state['prediction']}]** (Prediction probability: {st.session_state['predict_proba'] * 100}%)")
161