Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
rerank model
Browse files
pages/Multimodal_Conversational_Search.py
CHANGED
|
@@ -330,22 +330,24 @@ def render_all():
|
|
| 330 |
|
| 331 |
placeholder = st.empty()
|
| 332 |
with placeholder.container():
|
| 333 |
-
if st.session_state.trigger_search
|
| 334 |
with st.spinner("Running search..."):
|
| 335 |
handle_input()
|
| 336 |
render_all()
|
| 337 |
-
st.session_state.
|
| 338 |
|
|
|
|
| 339 |
st.markdown("")
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
|
|
|
| 349 |
|
| 350 |
|
| 351 |
|
|
|
|
| 330 |
|
| 331 |
placeholder = st.empty()
|
| 332 |
with placeholder.container():
|
| 333 |
+
if st.session_state.trigger_search:
|
| 334 |
with st.spinner("Running search..."):
|
| 335 |
handle_input()
|
| 336 |
render_all()
|
| 337 |
+
st.session_state.trigger_search = False
|
| 338 |
|
| 339 |
+
|
| 340 |
st.markdown("")
|
| 341 |
+
with st.form("query_form"):
|
| 342 |
+
col_2, col_3 = st.columns([75, 20])
|
| 343 |
+
with col_2:
|
| 344 |
+
st.text_input("Ask here", key="input_query", label_visibility="collapsed")
|
| 345 |
+
with col_3:
|
| 346 |
+
submitted = st.form_submit_button("Go")
|
| 347 |
+
|
| 348 |
+
if submitted:
|
| 349 |
+
st.session_state.trigger_search = True
|
| 350 |
+
|
| 351 |
|
| 352 |
|
| 353 |
|