Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -219,6 +219,11 @@ class ConversationBot:
|
|
219 |
print("======>Previous memory:\n %s" % self.agent.memory)
|
220 |
self.agent.memory.buffer = cut_dialogue_history(self.agent.memory.buffer, keep_last_n_words=500)
|
221 |
res = self.agent({"input": text})
|
|
|
|
|
|
|
|
|
|
|
222 |
if res['intermediate_steps'] == []:
|
223 |
print("======>Current memory:\n %s" % self.agent.memory)
|
224 |
response = res['output']
|
|
|
219 |
print("======>Previous memory:\n %s" % self.agent.memory)
|
220 |
self.agent.memory.buffer = cut_dialogue_history(self.agent.memory.buffer, keep_last_n_words=500)
|
221 |
res = self.agent({"input": text})
|
222 |
+
print("###memory###")
|
223 |
+
print(self.agent.memory)
|
224 |
+
print("###buffer###")
|
225 |
+
print(self.agent.memory.buffer)
|
226 |
+
|
227 |
if res['intermediate_steps'] == []:
|
228 |
print("======>Current memory:\n %s" % self.agent.memory)
|
229 |
response = res['output']
|