prasadnu commited on
Commit
0b32329
·
1 Parent(s): 22d4b16

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
- res_img = md['image']
 
 
 
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)