mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-28 07:12:35 -08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
dce7fc902a
2 changed files with 7 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ def apply_field(field):
|
|||
|
||||
|
||||
def apply_prompt(p, x, xs):
|
||||
if xs[0] not in p.prompt and xs[0] not in p.negative_prompt:
|
||||
raise RuntimeError(f"Prompt S/R did not find {xs[0]} in prompt or negative prompt.")
|
||||
|
||||
p.prompt = p.prompt.replace(xs[0], x)
|
||||
p.negative_prompt = p.negative_prompt.replace(xs[0], x)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue