Spaces:
Running
on
T4
Running
on
T4
rerank model
Browse files
pages/Multimodal_Conversational_Search.py
CHANGED
@@ -217,16 +217,16 @@ def render_answer(question,answer,index,res_img):
|
|
217 |
st.audio(polly_response['AudioStream'].read(), format="audio/ogg")
|
218 |
rdn_key_1 = ''.join([random.choice(string.ascii_letters)
|
219 |
for _ in range(10)])
|
220 |
-
def show_maxsim():
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
if(st.session_state.input_is_colpali):
|
229 |
-
|
230 |
|
231 |
colu1,colu2,colu3 = st.columns([4,82,20])
|
232 |
with colu2:
|
|
|
217 |
st.audio(polly_response['AudioStream'].read(), format="audio/ogg")
|
218 |
rdn_key_1 = ''.join([random.choice(string.ascii_letters)
|
219 |
for _ in range(10)])
|
220 |
+
# def show_maxsim():
|
221 |
+
# st.session_state.show_columns = True
|
222 |
+
# st.session_state.maxSimImages = colpali.img_highlight(st.session_state.top_img, st.session_state.query_token_vectors, st.session_state.query_tokens)
|
223 |
+
# with placeholder.container():
|
224 |
+
# if st.session_state.trigger_search:
|
225 |
+
# handle_input()
|
226 |
+
# render_all()
|
227 |
+
# #render_all()
|
228 |
+
# if(st.session_state.input_is_colpali):
|
229 |
+
# st.button("Show similarity map",key=rdn_key_1,on_click = show_maxsim)
|
230 |
|
231 |
colu1,colu2,colu3 = st.columns([4,82,20])
|
232 |
with colu2:
|