mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Fix dropdown menus sometimes failing to refresh
This commit is contained in:
parent
9cd2106303
commit
c4e005efec
@ -249,7 +249,7 @@ def create_refresh_button(refresh_component, refresh_method, refreshed_args, ele
|
|||||||
|
|
||||||
refresh_button = gr.Button(refresh_symbol, elem_classes=elem_class, interactive=interactive)
|
refresh_button = gr.Button(refresh_symbol, elem_classes=elem_class, interactive=interactive)
|
||||||
refresh_button.click(
|
refresh_button.click(
|
||||||
fn=refresh,
|
fn=lambda: {k: tuple(v) if type(k) is list else v for k, v in refresh().items()},
|
||||||
inputs=[],
|
inputs=[],
|
||||||
outputs=[refresh_component]
|
outputs=[refresh_component]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user