Improve --multi-user mode
This commit is contained in:
parent
019371c0b6
commit
1ca54faaf0
10 changed files with 79 additions and 68 deletions
|
@ -219,7 +219,7 @@ class ToolButton(gr.Button, gr.components.IOComponent):
|
|||
return "button"
|
||||
|
||||
|
||||
def create_refresh_button(refresh_component, refresh_method, refreshed_args, elem_class):
|
||||
def create_refresh_button(refresh_component, refresh_method, refreshed_args, elem_class, interactive=True):
|
||||
"""
|
||||
Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui
|
||||
"""
|
||||
|
@ -232,7 +232,7 @@ def create_refresh_button(refresh_component, refresh_method, refreshed_args, ele
|
|||
|
||||
return gr.update(**(args or {}))
|
||||
|
||||
refresh_button = ToolButton(value=refresh_symbol, elem_classes=elem_class)
|
||||
refresh_button = ToolButton(value=refresh_symbol, elem_classes=elem_class, interactive=interactive)
|
||||
refresh_button.click(
|
||||
fn=refresh,
|
||||
inputs=[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue