Skip to content

Commit

Permalink
Fix send buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed Dec 2, 2023
1 parent 2f165d7 commit e529627
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/stable_diffusion/web/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def register_button_click(button, selectedid, inputs, outputs):
button.click(
lambda x: (
x[0]["name"] if len(x) != 0 else None,
gr.Tabs.update(selected=selectedid),
gr.Tabs(selected=selectedid),
),
inputs,
outputs,
Expand All @@ -189,7 +189,7 @@ def register_modelmanager_button(button, selectedid, inputs, outputs):
lambda x: (
"None",
x,
gr.Tabs.update(selected=selectedid),
gr.Tabs(selected=selectedid),
),
inputs,
outputs,
Expand All @@ -199,7 +199,7 @@ def register_outputgallery_button(button, selectedid, inputs, outputs):
button.click(
lambda x: (
x,
gr.Tabs.update(selected=selectedid),
gr.Tabs(selected=selectedid),
),
inputs,
outputs,
Expand Down
1 change: 0 additions & 1 deletion apps/stable_diffusion/web/ui/txt2img_sdxl_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def txt2img_sdxl_inf(
save_metadata_to_png: bool,
ondemand: bool,
repeatable_seeds: bool,

):
if precision != "fp16":
print("currently we support fp16 for SDXL")
Expand Down
4 changes: 2 additions & 2 deletions apps/stable_diffusion/web/ui/txt2img_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,12 @@ def resource_path(relative_path):
# SharkEulerDiscrete doesn't work with img2img which hires_fix uses
def set_compatible_schedulers(hires_fix_selected):
if hires_fix_selected:
return gr.Dropdown.update(
return gr.Dropdown(
choices=scheduler_list_cpu_only,
value="DEISMultistep",
)
else:
return gr.Dropdown.update(
return gr.Dropdown(
choices=scheduler_list,
value="SharkEulerDiscrete",
)
Expand Down

0 comments on commit e529627

Please sign in to comment.