aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 0a58f6be..673014f2 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1244,7 +1244,10 @@ def create_ui(wrap_gradio_gpu_call):
def refresh():
info.refresh()
refreshed_args = info.component_args() if callable(info.component_args) else info.component_args
- res.choices = refreshed_args["choices"]
+
+ for k, v in refreshed_args.items():
+ setattr(res, k, v)
+
return gr.update(**(refreshed_args or {}))
refresh_button.click(