Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -259,7 +259,7 @@ def conversation(qa_chain, message, history):
|
|
259 |
#print("formatted_chat_history",formatted_chat_history)
|
260 |
|
261 |
# Generate response using QA chain
|
262 |
-
response = qa_chain({"question": message, "chat_history": formatted_chat_history)
|
263 |
response_answer = response["answer"]
|
264 |
if response_answer.find("Helpful Answer:") != -1:
|
265 |
response_answer = response_answer.split("Helpful Answer:")[-1]
|
|
|
259 |
#print("formatted_chat_history",formatted_chat_history)
|
260 |
|
261 |
# Generate response using QA chain
|
262 |
+
response = qa_chain({"question": message, "chat_history": formatted_chat_history})
|
263 |
response_answer = response["answer"]
|
264 |
if response_answer.find("Helpful Answer:") != -1:
|
265 |
response_answer = response_answer.split("Helpful Answer:")[-1]
|