diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 14:43:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 14:43:07 +0000 |
commit | f685fe725099dd533422760e0693e9c61f1c32ff (patch) | |
tree | 049d07f32194c1eced8ae4436af819fbfe4f5316 /modules/ui_postprocessing.py | |
parent | 97167a576880e4802de081db71372ddc8c16fd92 (diff) | |
parent | 88c7debb02caa5e9b9a2bd519085f1f9134c4b01 (diff) | |
download | stable-diffusion-webui-gfx803-f685fe725099dd533422760e0693e9c61f1c32ff.tar.gz stable-diffusion-webui-gfx803-f685fe725099dd533422760e0693e9c61f1c32ff.tar.bz2 stable-diffusion-webui-gfx803-f685fe725099dd533422760e0693e9c61f1c32ff.zip |
Merge pull request #9159 from space-nuko/ui-config-tabs
Make selected tab configurable with UI config
Diffstat (limited to 'modules/ui_postprocessing.py')
-rw-r--r-- | modules/ui_postprocessing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui_postprocessing.py b/modules/ui_postprocessing.py index d278e1b6..f25639e5 100644 --- a/modules/ui_postprocessing.py +++ b/modules/ui_postprocessing.py @@ -9,13 +9,13 @@ def create_ui(): with gr.Row().style(equal_height=False, variant='compact'):
with gr.Column(variant='compact'):
with gr.Tabs(elem_id="mode_extras"):
- with gr.TabItem('Single Image', elem_id="extras_single_tab") as tab_single:
+ with gr.TabItem('Single Image', id="single_image", elem_id="extras_single_tab") as tab_single:
extras_image = gr.Image(label="Source", source="upload", interactive=True, type="pil", elem_id="extras_image")
- with gr.TabItem('Batch Process', elem_id="extras_batch_process_tab") as tab_batch:
+ with gr.TabItem('Batch Process', id="batch_process", elem_id="extras_batch_process_tab") as tab_batch:
image_batch = gr.Files(label="Batch Process", interactive=True, elem_id="extras_image_batch")
- with gr.TabItem('Batch from Directory', elem_id="extras_batch_directory_tab") as tab_batch_dir:
+ with gr.TabItem('Batch from Directory', id="batch_from_directory", elem_id="extras_batch_directory_tab") as tab_batch_dir:
extras_batch_input_dir = gr.Textbox(label="Input directory", **shared.hide_dirs, placeholder="A directory on the same machine where the server is running.", elem_id="extras_batch_input_dir")
extras_batch_output_dir = gr.Textbox(label="Output directory", **shared.hide_dirs, placeholder="Leave blank to save images to the default path.", elem_id="extras_batch_output_dir")
show_extras_results = gr.Checkbox(label='Show result images', value=True, elem_id="extras_show_extras_results")
|