Spaces:
Running
Running
Upload app.py
Browse files
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.")
|