ofermend commited on
Commit
0e3c0ad
1 Parent(s): c150a4d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ def launch_bot():
122
  submit_button = st.form_submit_button(label='Find the Match')
123
  st.markdown('</div>', unsafe_allow_html=True)
124
 
125
- if submit_button:
126
  movie_name, match_url, score = vq.submit_query(question)
127
  if score < 0.7:
128
  st.write("Sorry, I couldn't find a match for that quote. Please try another one.")
 
122
  submit_button = st.form_submit_button(label='Find the Match')
123
  st.markdown('</div>', unsafe_allow_html=True)
124
 
125
+ if submit_button and len(question) > 5:
126
  movie_name, match_url, score = vq.submit_query(question)
127
  if score < 0.7:
128
  st.write("Sorry, I couldn't find a match for that quote. Please try another one.")