Spaces:
Sleeping
Sleeping
update st.chat_message from response
Browse files
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")
|