aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index 6ff95dc4..84e5c1fd 100644
--- a/webui.py
+++ b/webui.py
@@ -23,6 +23,7 @@ import modules.sd_hijack
import modules.sd_models
import modules.shared as shared
import modules.txt2img
+import modules.script_callbacks
import modules.ui
from modules import devices
@@ -77,7 +78,7 @@ def initialize():
modules.scripts.load_scripts()
modules.sd_models.load_model()
- shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights(shared.sd_model)))
+ shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()))
shared.opts.onchange("sd_hypernetwork", wrap_queued_call(lambda: modules.hypernetworks.hypernetwork.load_hypernetwork(shared.opts.sd_hypernetwork)))
shared.opts.onchange("sd_hypernetwork_strength", modules.hypernetworks.hypernetwork.apply_strength)
@@ -140,6 +141,8 @@ def webui():
if launch_api:
create_api(app)
+ modules.script_callbacks.app_started_callback(demo, app)
+
wait_on_server(demo)
sd_samplers.set_samplers()