Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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))
|