From 63c89a56e1be38be9ba14372cec08fe91e25c14e Mon Sep 17 00:00:00 2001 From: Omar Solano Date: Mon, 26 Aug 2024 15:25:24 -0600 Subject: [PATCH] Refactor main.py to use a lambda for ChatSummaryMemoryBuffer initialization in demo --- scripts/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.py b/scripts/main.py index ad5559f..90775e1 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -209,7 +209,7 @@ def vote(data: gr.LikeData): ) as demo: memory = gr.State( - ChatSummaryMemoryBuffer.from_defaults( + lambda: ChatSummaryMemoryBuffer.from_defaults( token_limit=120000, ) )