SiraH commited on
Commit
a802631
1 Parent(s): 6176e99

update st.chat_message from response

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -249,6 +249,9 @@ def main():
249
 
250
  url_list = set([i.metadata['source'] for i in response['source_documents']])
251
  #print(f"condensed quesion : {question_generator.run({'chat_history': response['chat_history'], 'question' : query})}")
 
 
 
252
 
253
  end = time.time()
254
  st.write("Respone time:",int(end-start),"sec")
 
249
 
250
  url_list = set([i.metadata['source'] for i in response['source_documents']])
251
  #print(f"condensed quesion : {question_generator.run({'chat_history': response['chat_history'], 'question' : query})}")
252
+
253
+ with st.chat_message("assistant"):
254
+ st.markdown(response['answer'])
255
 
256
  end = time.time()
257
  st.write("Respone time:",int(end-start),"sec")