From df14dc215cf885a170ddc5af2525565f9f499c0d Mon Sep 17 00:00:00 2001 From: missionfloyd Date: Tue, 5 Dec 2023 06:56:40 -0700 Subject: [PATCH] Change img2img_selected_tab back to gr.State --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index 2e6c6ce8a..93617f5ba 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -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)