Omar Solano commited on
Commit
63c89a5
Β·
1 Parent(s): 357b9eb

Refactor main.py to use a lambda for ChatSummaryMemoryBuffer initialization in demo

Browse files
Files changed (1) hide show
  1. scripts/main.py +1 -1
scripts/main.py CHANGED
@@ -209,7 +209,7 @@ with gr.Blocks(
209
  ) as demo:
210
 
211
  memory = gr.State(
212
- ChatSummaryMemoryBuffer.from_defaults(
213
  token_limit=120000,
214
  )
215
  )
 
209
  ) as demo:
210
 
211
  memory = gr.State(
212
+ lambda: ChatSummaryMemoryBuffer.from_defaults(
213
  token_limit=120000,
214
  )
215
  )