Update app.py
Browse files
app.py
CHANGED
@@ -93,11 +93,12 @@ def handle_userinput(user_question,vectorstore):
|
|
93 |
"configurable": {"session_id": "k"}
|
94 |
},
|
95 |
)["answer"]
|
96 |
-
|
|
|
97 |
|
98 |
|
99 |
|
100 |
-
for i, message in enumerate(
|
101 |
if i % 2 == 0:
|
102 |
st.write(user_template.replace(
|
103 |
"{{MSG}}", message.content), unsafe_allow_html=True)
|
|
|
93 |
"configurable": {"session_id": "k"}
|
94 |
},
|
95 |
)["answer"]
|
96 |
+
|
97 |
+
st.session_state.chat_history = response['chat_history']
|
98 |
|
99 |
|
100 |
|
101 |
+
for i, message in enumerate(st.session_state.chat_history):
|
102 |
if i % 2 == 0:
|
103 |
st.write(user_template.replace(
|
104 |
"{{MSG}}", message.content), unsafe_allow_html=True)
|