cryogenic22 commited on
Commit
b72547c
·
verified ·
1 Parent(s): 4571b33

Update components/chat.py

Browse files
Files changed (1) hide show
  1. components/chat.py +3 -2
components/chat.py CHANGED
@@ -24,9 +24,10 @@ def display_chat_interface():
24
  human_message = HumanMessage(content=prompt)
25
  st.session_state.messages.append(human_message)
26
 
27
- # Get response from QA system
28
  response = st.session_state.qa_system.invoke({
29
- "input": prompt
 
30
  })
31
 
32
  if response:
 
24
  human_message = HumanMessage(content=prompt)
25
  st.session_state.messages.append(human_message)
26
 
27
+ # Get response from QA system with chat history
28
  response = st.session_state.qa_system.invoke({
29
+ "input": prompt,
30
+ "chat_history": st.session_state.messages
31
  })
32
 
33
  if response: