fix grid prompt

This commit is contained in:
Vladimir Mandic
2024-09-13 12:39:10 -04:00
parent 42d02a3665
commit a415e93b45
+2
View File
@@ -46,7 +46,9 @@ def apply_prompt(p, x, xs):
shared.log.warning(f"XYZ grid: prompt S/R did not find {xs[0]} in prompt or negative prompt.")
else:
p.prompt = p.prompt.replace(xs[0], x)
p.all_prompts = p.batch_size * [p.prompt]
p.negative_prompt = p.negative_prompt.replace(xs[0], x)
p.all_negative_prompts = p.batch_size * [p.negative_prompt]
shared.log.debug(f'XYZ grid apply prompt: "{xs[0]}"="{x}"')