ALVHB95 commited on
Commit
c4e56f9
·
1 Parent(s): 030bcf4
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def qa_response(question, chat_history):
109
  chat_history.append(("User", question))
110
 
111
  # Get response from the conversational retrieval chain
112
- response = qa_chain.run(chat_history)
113
 
114
  # Extract and return the assistant's answer from the response
115
  assistant_answer = response.get("answer", "I don't know.")
 
109
  chat_history.append(("User", question))
110
 
111
  # Get response from the conversational retrieval chain
112
+ response = qa_chain.invoke(chat_history)
113
 
114
  # Extract and return the assistant's answer from the response
115
  assistant_answer = response.get("answer", "I don't know.")