Fix MuLan negative prompt overwriting the positive prompt

When negative_prompt arrived as a list, the unwrap assigned it to
p.prompt instead of p.negative_prompt, replacing the user's prompt with
the negative prompt text and passing an unsupported list to the
pipeline.

https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-11 08:11:20 +00:00
committed by QualiaRain
parent 7851afc707
commit cfcc7c7338
+1 -1
View File
@@ -93,7 +93,7 @@ class MuLanScript(scripts_manager.Script):
p.prompt = p.prompt[0]
p.task_args['prompt'] = p.prompt
if isinstance(p.negative_prompt, list):
p.prompt = p.negative_prompt[0]
p.negative_prompt = p.negative_prompt[0]
p.task_args['negative_prompt'] = p.negative_prompt
if pipe_type != ('sd15' if shared.sd_model_type == 'sd' else 'sdxl'):