mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-21 05:35:00 +08:00
shared.state.interrupt when restart is requested
This commit is contained in:
parent
ef40e4cd4d
commit
bbdbbd36ed
@ -1210,6 +1210,7 @@ def create_ui(wrap_gradio_gpu_call):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def request_restart():
|
def request_restart():
|
||||||
|
shared.state.interrupt()
|
||||||
settings_interface.gradio_ref.do_restart = True
|
settings_interface.gradio_ref.do_restart = True
|
||||||
|
|
||||||
restart_gradio.click(
|
restart_gradio.click(
|
||||||
|
Loading…
Reference in New Issue
Block a user