Spaces:
Sleeping
Sleeping
Commit
·
6df5532
1
Parent(s):
c9ead64
Update app.py
Browse files
app.py
CHANGED
|
@@ -620,7 +620,7 @@ class ConversationBot:
|
|
| 620 |
|
| 621 |
def run_text(self, text, state):
|
| 622 |
|
| 623 |
-
self.agent.memory.buffer = cut_dialogue_history(self.agent.memory.buffer, keep_last_n_words=500)
|
| 624 |
res = self.agent({"input": text.strip()})
|
| 625 |
res['output'] = res['output'].replace("\\", "/")
|
| 626 |
response = re.sub('(image/[-\w]*.png)', lambda m: f'})*{m.group(0)}*', res['output'])
|
|
|
|
| 620 |
|
| 621 |
def run_text(self, text, state):
|
| 622 |
|
| 623 |
+
# self.agent.memory.buffer = cut_dialogue_history(self.agent.memory.buffer, keep_last_n_words=500)
|
| 624 |
res = self.agent({"input": text.strip()})
|
| 625 |
res['output'] = res['output'].replace("\\", "/")
|
| 626 |
response = re.sub('(image/[-\w]*.png)', lambda m: f'})*{m.group(0)}*', res['output'])
|