Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Nov 10, 2023
1 parent ff2952f commit 48a7933
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
from functools import reduce
import warnings
from contextlib import suppress

import gradio as gr
import gradio.utils
Expand Down Expand Up @@ -270,9 +271,7 @@ def create_ui():
extra_tabs.__enter__()

with gr.Tab("Generation", id="txt2img_generation") as txt2img_generation_tab, ResizeHandleRow(equal_height=False):
with gr.Accordion("Open for Settings", open=False), gr.Column(variant='compact', elem_id="txt2img_settings") \
if shared.opts.img2img_settings_accordion else gr.Column(variant='compact', elem_id="txt2img_settings"):

with gr.Accordion("Open for Settings", open=False) if shared.opts.txt2img_settings_accordion else suppress(), gr.Column(variant='compact', elem_id="txt2img_settings"):
scripts.scripts_txt2img.prepare_ui()

for category in ordered_ui_categories():
Expand Down Expand Up @@ -491,8 +490,7 @@ def create_ui():
extra_tabs.__enter__()

with gr.Tab("Generation", id="img2img_generation") as img2img_generation_tab, ResizeHandleRow(equal_height=False):
with gr.Accordion("Open for Settings", open=False), gr.Column(variant='compact', elem_id="img2img_settings") \
if shared.opts.img2img_settings_accordion else gr.Column(variant='compact', elem_id="img2img_settings"):
with gr.Accordion("Open for Settings", open=False) if shared.opts.img2img_settings_accordion else suppress(), gr.Column(variant='compact', elem_id="img2img_settings"):

copy_image_buttons = []
copy_image_destinations = {}
Expand Down

0 comments on commit 48a7933

Please sign in to comment.