Spaces:
Sleeping
Sleeping
Karthikeyan
commited on
Commit
·
7195a2d
1
Parent(s):
6a89622
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,7 +132,7 @@ class Chatbot:
|
|
| 132 |
qa = ConversationalRetrievalChain.from_llm(
|
| 133 |
llm=OpenAI(temperature=0.5),
|
| 134 |
retriever=retriever,
|
| 135 |
-
memory=ConversationBufferMemory(return_messages=True),
|
| 136 |
return_source_documents=False)
|
| 137 |
# Set the question for which we want to find the answer
|
| 138 |
res = []
|
|
|
|
| 132 |
qa = ConversationalRetrievalChain.from_llm(
|
| 133 |
llm=OpenAI(temperature=0.5),
|
| 134 |
retriever=retriever,
|
| 135 |
+
memory=ConversationBufferMemory(memory_key="chat_history",return_messages=True),
|
| 136 |
return_source_documents=False)
|
| 137 |
# Set the question for which we want to find the answer
|
| 138 |
res = []
|