From b0765a67888bac205cd8af55faec4e773d431feb Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Thu, 22 Sep 2022 12:30:11 +0300 Subject: [PATCH] remove labels from output gallery --- modules/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index 3c898bd22..ca611f8f9 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -435,7 +435,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): with gr.Group(): txt2img_preview = gr.Image(elem_id='txt2img_preview', visible=False) - txt2img_gallery = gr.Gallery(label='Output', elem_id='txt2img_gallery').style(grid=4) + txt2img_gallery = gr.Gallery(label='Output', show_label=False, elem_id='txt2img_gallery').style(grid=4) with gr.Group(): with gr.Row(): @@ -590,7 +590,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): with gr.Group(): img2img_preview = gr.Image(elem_id='img2img_preview', visible=False) - img2img_gallery = gr.Gallery(label='Output', elem_id='img2img_gallery').style(grid=4) + img2img_gallery = gr.Gallery(label='Output', show_label=False, elem_id='img2img_gallery').style(grid=4) with gr.Group(): with gr.Row(): @@ -750,7 +750,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): submit = gr.Button('Generate', elem_id="extras_generate", variant='primary') with gr.Column(variant='panel'): - result_images = gr.Gallery(label="Result") + result_images = gr.Gallery(label="Result", show_label=False) html_info_x = gr.HTML() html_info = gr.HTML()