prasadnu commited on
Commit
a4078e0
·
1 Parent(s): a5a358f

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 and not st.session_state.run_done:
334
  with st.spinner("Running search..."):
335
  handle_input()
336
  render_all()
337
- st.session_state.run_done = True
338
 
 
339
  st.markdown("")
340
- col_2, col_3 = st.columns([75,20])
341
- with col_2:
342
- input = st.text_input( "Ask here",label_visibility = "collapsed",key="input_query")
343
- with col_3:
344
- #play = st.button("Go",on_click=handle_input,key = "play")
345
- play = st.button("Go", key="play")
346
- if play:
347
- st.session_state.trigger_search = True
348
- st.session_state.run_done = False
 
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