aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorrucadi <ruben.cano96@gmail.com>2022-12-16 17:31:20 +0000
committerrucadi <ruben.cano96@gmail.com>2022-12-16 17:31:20 +0000
commit0c8825b2bec3a68836eacf37718306c9c78554a0 (patch)
treed19a9725743c5133217215e1cb1ae73ef35ff242 /webui.py
parent1742c04bab5ff88b53dee60cfb9b90076dd98512 (diff)
downloadstable-diffusion-webui-gfx803-0c8825b2bec3a68836eacf37718306c9c78554a0.tar.gz
stable-diffusion-webui-gfx803-0c8825b2bec3a68836eacf37718306c9c78554a0.tar.bz2
stable-diffusion-webui-gfx803-0c8825b2bec3a68836eacf37718306c9c78554a0.zip
Add a callback called before reloading the server
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index 5f7a53f9..dda34249 100644
--- a/webui.py
+++ b/webui.py
@@ -108,6 +108,7 @@ def wait_on_server(demo=None):
time.sleep(0.5)
modules.script_callbacks.app_polling_callback(None, demo)
if shared.state.need_restart:
+ modules.script_callbacks.app_reload_callback(None, demo)
shared.state.need_restart = False
time.sleep(0.5)
demo.close()