From bec4e0a1cee50bfd5d08783970179a2a4e302bd4 Mon Sep 17 00:00:00 2001 From: mamei16 Date: Tue, 9 Jan 2024 18:49:37 +0100 Subject: [PATCH] Fix update event in refresh buttons (#5197) --- modules/ui.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index efb53bd..486a5b9 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -245,9 +245,6 @@ def create_refresh_button(refresh_component, refresh_method, refreshed_args, ele refresh_method() args = refreshed_args() if callable(refreshed_args) else refreshed_args - for k, v in args.items(): - setattr(refresh_component, k, v) - return gr.update(**(args or {})) refresh_button = gr.Button(refresh_symbol, elem_classes=elem_class, interactive=interactive)