From 04ba1604f448728424ba16c454ff4fe0f2a5d6a9 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 4 Jan 2024 18:12:11 +0100 Subject: [PATCH] fix: use currentTask instead of ctrls after merging upstream --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index fae88bbf..86940981 100644 --- a/webui.py +++ b/webui.py @@ -588,7 +588,7 @@ with shared.gradio_root: .then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \ .then(advanced_parameters.set_all_advanced_parameters, inputs=adps) \ .then(fn=get_task, inputs=ctrls, outputs=currentTask) \ - .then(fn=generate_clicked, inputs=ctrls, outputs=[progress_html, progress_window, progress_gallery, gallery]) \ + .then(fn=generate_clicked, inputs=currentTask, outputs=[progress_html, progress_window, progress_gallery, gallery]) \ .then(lambda: (gr.update(visible=True, interactive=True), gr.update(visible=False, interactive=False), gr.update(visible=False, interactive=False), False), outputs=[generate_button, stop_button, skip_button, state_is_generating]) \ .then(fn=lambda: None, _js='playNotification').then(fn=lambda: None, _js='refresh_grid_delayed')