check flag before displaying image extension radio button

This commit is contained in:
eddyizm 2024-01-12 23:01:22 -08:00
parent ab3acb7817
commit 07791dd0af
No known key found for this signature in database
GPG Key ID: 2367DCDC2F004E40
1 changed files with 4 additions and 3 deletions

View File

@ -230,9 +230,7 @@ with shared.gradio_root:
value=modules.config.default_aspect_ratio, info='width × height',
elem_classes='aspect_ratios')
image_number = gr.Slider(label='Image Number', minimum=1, maximum=modules.config.default_max_image_number, step=1, value=modules.config.default_image_number)
image_extension = gr.Radio(label='Image Extension',
choices=modules.flags.image_extensions,
value=modules.config.default_image_extension)
negative_prompt = gr.Textbox(label='Negative Prompt', show_label=True, placeholder="Type prompt here.",
info='Describing what you do not want to see.', lines=2,
elem_id='negative_prompt',
@ -259,6 +257,9 @@ with shared.gradio_root:
queue=False, show_progress=False)
if not args_manager.args.disable_image_log:
image_extension = gr.Radio(label='Image Extension',
choices=modules.flags.image_extensions,
value=modules.config.default_image_extension)
gr.HTML(f'<a href="/file={get_current_html_path(image_extension)}" target="_blank">\U0001F4DA History Log</a>')
with gr.Tab(label='Style'):