ArturG9 commited on
Commit
44dbaf8
1 Parent(s): d26ed89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -85,7 +85,13 @@ def main():
85
 
86
  def handle_userinput(user_question,vectorstore):
87
  Rag_chain = create_conversational_rag_chain()
88
- response = Rag_chain({'question': user_question})
 
 
 
 
 
 
89
  st.session_state.chat_history = response['chat_history']
90
 
91
  for i, message in enumerate(st.session_state.chat_history):
 
85
 
86
  def handle_userinput(user_question,vectorstore):
87
  Rag_chain = create_conversational_rag_chain()
88
+ response = Rag_chain.invoke(
89
+ {"input": user_question "},
90
+
91
+ config={
92
+ "configurable": {"session_id": "k"}
93
+ },
94
+ )["answer"]
95
  st.session_state.chat_history = response['chat_history']
96
 
97
  for i, message in enumerate(st.session_state.chat_history):