mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: add positive prompt if styles don't have a prompt placeholder (#3372)
fixes https://github.com/lllyasviel/Fooocus/issues/3367
This commit is contained in:
@@ -59,7 +59,7 @@ def get_random_style(rng: Random) -> str:
|
||||
|
||||
def apply_style(style, positive):
|
||||
p, n = styles[style]
|
||||
return p.replace('{prompt}', positive).splitlines(), n.splitlines()
|
||||
return p.replace('{prompt}', positive).splitlines(), n.splitlines(), '{prompt}' in p
|
||||
|
||||
|
||||
def get_words(arrays, total_mult, index):
|
||||
|
||||
Reference in New Issue
Block a user