mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-08 15:50:38 -07:00
Change img2img_selected_tab back to gr.State
This commit is contained in:
parent
10791e7d35
commit
df14dc215c
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ def create_ui():
|
|||
|
||||
if category == "image":
|
||||
with gr.Tabs(elem_id="mode_img2img"):
|
||||
img2img_selected_tab = gr.Number(value=0, visible=False)
|
||||
img2img_selected_tab = gr.State(0)
|
||||
|
||||
with gr.TabItem('img2img', id='img2img', elem_id="img2img_img2img_tab") as tab_img2img:
|
||||
init_img = gr.ImageEditor(label="Image for img2img", elem_id="img2img_image", show_label=False, sources=("upload", "clipboard"), interactive=True, type="pil", image_mode="RGBA", height=opts.img2img_editor_height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue