Spaces:
Running
on
T4
Running
on
T4
RAG changes
Browse files
pages/Multimodal_Conversational_Search.py
CHANGED
@@ -397,7 +397,10 @@ def render_answer(question,answer,index,res_img):
|
|
397 |
|
398 |
#Each answer will have context of the question asked in order to associate the provided feedback with the respective question
|
399 |
def write_chat_message(md, q,index):
|
400 |
-
|
|
|
|
|
|
|
401 |
chat = st.container()
|
402 |
with chat:
|
403 |
render_answer(q,md,index,res_img)
|
|
|
397 |
|
398 |
#Each answer will have context of the question asked in order to associate the provided feedback with the respective question
|
399 |
def write_chat_message(md, q,index):
|
400 |
+
if(st.session_state.show_columns):
|
401 |
+
res_img = st.session_state.maxSimImages
|
402 |
+
else:
|
403 |
+
res_img = md['image']
|
404 |
chat = st.container()
|
405 |
with chat:
|
406 |
render_answer(q,md,index,res_img)
|