prevent weird behavior when pressing interrupt just as image finishes
This commit is contained in:
@@ -53,6 +53,7 @@ def wrap_gradio_gpu_call(func):
|
|||||||
shared.state.current_latent = None
|
shared.state.current_latent = None
|
||||||
shared.state.current_image = None
|
shared.state.current_image = None
|
||||||
shared.state.current_image_sampling_step = 0
|
shared.state.current_image_sampling_step = 0
|
||||||
|
shared.state.interrupted = False
|
||||||
|
|
||||||
with queue_lock:
|
with queue_lock:
|
||||||
res = func(*args, **kwargs)
|
res = func(*args, **kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user