Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
rerank model
Browse files
pages/Multimodal_Conversational_Search.py
CHANGED
|
@@ -161,8 +161,6 @@ def handle_input():
|
|
| 161 |
print("Question: "+st.session_state.input_query)
|
| 162 |
print("-----------")
|
| 163 |
print("\n\n")
|
| 164 |
-
if(st.session_state.input_query==''):
|
| 165 |
-
return ""
|
| 166 |
inputs = {}
|
| 167 |
for key in st.session_state:
|
| 168 |
if key.startswith('input_'):
|
|
@@ -342,7 +340,7 @@ if play:
|
|
| 342 |
|
| 343 |
placeholder = st.empty()
|
| 344 |
with placeholder.container():
|
| 345 |
-
if st.session_state.trigger_search:
|
| 346 |
with st.spinner("Running search..."):
|
| 347 |
handle_input()
|
| 348 |
render_all()
|
|
|
|
| 161 |
print("Question: "+st.session_state.input_query)
|
| 162 |
print("-----------")
|
| 163 |
print("\n\n")
|
|
|
|
|
|
|
| 164 |
inputs = {}
|
| 165 |
for key in st.session_state:
|
| 166 |
if key.startswith('input_'):
|
|
|
|
| 340 |
|
| 341 |
placeholder = st.empty()
|
| 342 |
with placeholder.container():
|
| 343 |
+
if st.session_state.trigger_search and st.session_state.input_query != "":
|
| 344 |
with st.spinner("Running search..."):
|
| 345 |
handle_input()
|
| 346 |
render_all()
|