Spaces:
Sleeping
Sleeping
Update chatbot.py
Browse files- chatbot.py +1 -1
chatbot.py
CHANGED
@@ -18,7 +18,7 @@ class Comsatsbot:
|
|
18 |
|
19 |
# Initialize memory buffer and MongoDB connection
|
20 |
self.memory = ConversationTokenBufferMemory(llm=self.llm, max_token_limit=3000, memory_key="chat_history", # optional but recommended
|
21 |
-
return_messages=True
|
22 |
self.chats_collection = chats_collection
|
23 |
self.index_path = index_path
|
24 |
self.hf = hf
|
|
|
18 |
|
19 |
# Initialize memory buffer and MongoDB connection
|
20 |
self.memory = ConversationTokenBufferMemory(llm=self.llm, max_token_limit=3000, memory_key="chat_history", # optional but recommended
|
21 |
+
return_messages=True )
|
22 |
self.chats_collection = chats_collection
|
23 |
self.index_path = index_path
|
24 |
self.hf = hf
|