ArturG9 commited on
Commit
ba98772
1 Parent(s): 6eff0f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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(msgs):
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)