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