Omnibus commited on
Commit
846853b
·
verified ·
1 Parent(s): 3e9abf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -47,7 +47,10 @@ def generate(
47
  )
48
  cnt=0
49
  for ea in history:
50
- cnt+=len(ea.split("\n"))
 
 
 
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)