Update app.py
Browse files
app.py
CHANGED
|
@@ -189,7 +189,7 @@ def conversation(qa_chain, message, history):
|
|
| 189 |
#print("formatted_chat_history",formatted_chat_history)
|
| 190 |
|
| 191 |
# Generate response using QA chain
|
| 192 |
-
response = qa_chain({"question": message, "
|
| 193 |
response_answer = response["answer"]
|
| 194 |
if response_answer.find("Helpful Answer:") != -1:
|
| 195 |
response_answer = response_answer.split("Helpful Answer:")[-1]
|
|
|
|
| 189 |
#print("formatted_chat_history",formatted_chat_history)
|
| 190 |
|
| 191 |
# Generate response using QA chain
|
| 192 |
+
response = qa_chain({"question": message, "history": formatted_chat_history})
|
| 193 |
response_answer = response["answer"]
|
| 194 |
if response_answer.find("Helpful Answer:") != -1:
|
| 195 |
response_answer = response_answer.split("Helpful Answer:")[-1]
|