Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -253,7 +253,7 @@ def conversation(qa_chain, message, history):
|
|
253 |
#print("formatted_chat_history",formatted_chat_history)
|
254 |
|
255 |
# Generate response using QA chain
|
256 |
-
response = qa_chain({"question": message, "chat_history": formatted_chat_history
|
257 |
response_answer = response["answer"]
|
258 |
if response_answer.find("Helpful Answer:") != -1:
|
259 |
response_answer = response_answer.split("Helpful Answer:")[-1]
|
|
|
253 |
#print("formatted_chat_history",formatted_chat_history)
|
254 |
|
255 |
# Generate response using QA chain
|
256 |
+
response = qa_chain({"question": message, "chat_history": formatted_chat_history)
|
257 |
response_answer = response["answer"]
|
258 |
if response_answer.find("Helpful Answer:") != -1:
|
259 |
response_answer = response_answer.split("Helpful Answer:")[-1]
|