Skip to content

Commit 63c89a5

Browse files
committed
Refactor main.py to use a lambda for ChatSummaryMemoryBuffer initialization in demo
1 parent 357b9eb commit 63c89a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def vote(data: gr.LikeData):
209209
) as demo:
210210

211211
memory = gr.State(
212-
ChatSummaryMemoryBuffer.from_defaults(
212+
lambda: ChatSummaryMemoryBuffer.from_defaults(
213213
token_limit=120000,
214214
)
215215
)

0 commit comments

Comments
 (0)