From c82e32652e589a556b0477d484b6f58d13c652b1 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Fri, 23 Sep 2022 08:48:19 +0300 Subject: [PATCH] prevent weird behavior when pressing interrupt just as image finishes --- webui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webui.py b/webui.py index a23d65a1..64c9d462 100644 --- a/webui.py +++ b/webui.py @@ -53,6 +53,7 @@ def wrap_gradio_gpu_call(func): shared.state.current_latent = None shared.state.current_image = None shared.state.current_image_sampling_step = 0 + shared.state.interrupted = False with queue_lock: res = func(*args, **kwargs)