Skip to content

Commit

Permalink
Refactor main.py to use a lambda for ChatSummaryMemoryBuffer initiali…
Browse files Browse the repository at this point in the history
…zation in demo
  • Loading branch information
omar-sol committed Aug 26, 2024
1 parent 357b9eb commit 63c89a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def vote(data: gr.LikeData):
) as demo:

memory = gr.State(
ChatSummaryMemoryBuffer.from_defaults(
lambda: ChatSummaryMemoryBuffer.from_defaults(
token_limit=120000,
)
)
Expand Down

0 comments on commit 63c89a5

Please sign in to comment.