fix(video): assign the loaded modular pipeline to the model slot

The modular branch returned the pipe instead of assigning it, so the video
tab and the API failed with "model not loaded" and the whole post-load tail
was skipped along with it.
This commit is contained in:
CalamitousFelicitousness
2026-08-14 01:27:53 +01:00
parent ca7f2cc01f
commit 5c495c29cd
+1 -1
View File
@@ -175,7 +175,7 @@ def load_model(selected: models_def.Model):
try:
if selected.workflow is not None or modular_load.is_modular(selected.repo_cls):
from modules.modular_load import load_modular_pipe
return load_modular_pipe(selected.repo_cls, selected.repo, workflow=selected.workflow, revision=selected.repo_revision, offline_args=offline_args, base=selected.base)
shared.sd_model = load_modular_pipe(selected.repo_cls, selected.repo, workflow=selected.workflow, revision=selected.repo_revision, offline_args=offline_args, base=selected.base)
elif selected.repo_cls is None:
shared.sd_model = load_custom(selected.repo)
else: