Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ class Conversation:
|
|
29 |
self.messages.append({"role": "assistant", "content": message})
|
30 |
|
31 |
if len(self.messages) > self.num_of_round*2 + 1:
|
32 |
-
del self.messages[1:3]
|
33 |
return message
|
34 |
|
35 |
|
|
|
29 |
self.messages.append({"role": "assistant", "content": message})
|
30 |
|
31 |
if len(self.messages) > self.num_of_round*2 + 1:
|
32 |
+
del self.messages[1:3] # Remove the first round conversation left.
|
33 |
return message
|
34 |
|
35 |
|