Spaces:
Sleeping
Sleeping
app11
Browse files
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.
|
| 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.")
|