Omnibus commited on
Commit
4462aec
·
verified ·
1 Parent(s): 00ff648

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -61,6 +61,9 @@ def chat_inf(system_prompt,prompt,history,memory,client_choice,seed,temp,tokens,
61
  if not history:
62
  history = []
63
  hist_len=0
 
 
 
64
  if memory:
65
  for ea in memory[0-chat_mem:]:
66
  hist_len+=len(str(ea))
 
61
  if not history:
62
  history = []
63
  hist_len=0
64
+ if not memory:
65
+ memory = []
66
+ mem_len=0
67
  if memory:
68
  for ea in memory[0-chat_mem:]:
69
  hist_len+=len(str(ea))