Spaces:
Runtime error
Runtime error
Update webui.py
Browse files
webui.py
CHANGED
@@ -96,7 +96,7 @@ shared.gradio_root = gr.Blocks(
|
|
96 |
css=modules.html.css).queue()
|
97 |
|
98 |
with shared.gradio_root:
|
99 |
-
currentTask = gr.State()
|
100 |
with gr.Row():
|
101 |
with gr.Column(scale=2):
|
102 |
with gr.Row():
|
@@ -258,7 +258,7 @@ with shared.gradio_root:
|
|
258 |
choices=modules.flags.performance_selections,
|
259 |
value=modules.config.default_performance)
|
260 |
aspect_ratios_selection = gr.Radio(label='Aspect Ratios', choices=modules.config.available_aspect_ratios,
|
261 |
-
value=modules.config.default_aspect_ratio, info='width
|
262 |
elem_classes='aspect_ratios')
|
263 |
image_number = gr.Slider(label='Image Number', minimum=1, maximum=modules.config.default_max_image_number, step=1, value=modules.config.default_image_number)
|
264 |
|
@@ -642,7 +642,6 @@ with shared.gradio_root:
|
|
642 |
metadata_import_button.click(trigger_metadata_import, inputs=[metadata_input_image, state_is_generating], outputs=load_data_outputs, queue=False, show_progress=True) \
|
643 |
.then(style_sorter.sort_styles, inputs=style_selections, outputs=style_selections, queue=False, show_progress=False)
|
644 |
|
645 |
-
currentTask = None
|
646 |
generate_button.click(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), [], True),
|
647 |
outputs=[stop_button, skip_button, generate_button, gallery, state_is_generating]) \
|
648 |
.then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \
|
|
|
96 |
css=modules.html.css).queue()
|
97 |
|
98 |
with shared.gradio_root:
|
99 |
+
currentTask = gr.State(worker.AsyncTask(args=[]))
|
100 |
with gr.Row():
|
101 |
with gr.Column(scale=2):
|
102 |
with gr.Row():
|
|
|
258 |
choices=modules.flags.performance_selections,
|
259 |
value=modules.config.default_performance)
|
260 |
aspect_ratios_selection = gr.Radio(label='Aspect Ratios', choices=modules.config.available_aspect_ratios,
|
261 |
+
value=modules.config.default_aspect_ratio, info='width × height',
|
262 |
elem_classes='aspect_ratios')
|
263 |
image_number = gr.Slider(label='Image Number', minimum=1, maximum=modules.config.default_max_image_number, step=1, value=modules.config.default_image_number)
|
264 |
|
|
|
642 |
metadata_import_button.click(trigger_metadata_import, inputs=[metadata_input_image, state_is_generating], outputs=load_data_outputs, queue=False, show_progress=True) \
|
643 |
.then(style_sorter.sort_styles, inputs=style_selections, outputs=style_selections, queue=False, show_progress=False)
|
644 |
|
|
|
645 |
generate_button.click(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), [], True),
|
646 |
outputs=[stop_button, skip_button, generate_button, gallery, state_is_generating]) \
|
647 |
.then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \
|