Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def handle_userinput(user_question):
|
|
81 |
|
82 |
st.session_state.retrieved_text = response['source_documents'][0]
|
83 |
|
84 |
-
for i, (message, text) in enumerate(zip(st.session_state.chat_history, st.session_state.retrieved_text):
|
85 |
if i % 2 == 0:
|
86 |
st.write(user_template.replace(
|
87 |
"{{MSG}}", message.content), unsafe_allow_html=True)
|
|
|
81 |
|
82 |
st.session_state.retrieved_text = response['source_documents'][0]
|
83 |
|
84 |
+
for i, (message, text) in enumerate(zip(st.session_state.chat_history, st.session_state.retrieved_text)):
|
85 |
if i % 2 == 0:
|
86 |
st.write(user_template.replace(
|
87 |
"{{MSG}}", message.content), unsafe_allow_html=True)
|