Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,10 @@ def generate(
|
|
| 47 |
)
|
| 48 |
cnt=0
|
| 49 |
for ea in history:
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
| 51 |
print(f'cnt:: {cnt}')
|
| 52 |
if cnt > MAX_HISTORY:
|
| 53 |
history = compress_history(history, prompt, history)
|
|
|
|
| 47 |
)
|
| 48 |
cnt=0
|
| 49 |
for ea in history:
|
| 50 |
+
print (ea)
|
| 51 |
+
for l in ea:
|
| 52 |
+
print (l)
|
| 53 |
+
cnt+=len(l.split("\n"))
|
| 54 |
print(f'cnt:: {cnt}')
|
| 55 |
if cnt > MAX_HISTORY:
|
| 56 |
history = compress_history(history, prompt, history)
|