mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
prompt expansion v2
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
from modules.util import join_prompts
|
||||
|
||||
|
||||
# https://github.com/twri/sdxl_prompt_styler/blob/main/sdxl_styles.json
|
||||
|
||||
styles = [
|
||||
@@ -966,9 +969,4 @@ def apply_style_positive(style, txt):
|
||||
|
||||
def apply_style_negative(style, txt):
|
||||
p, n = styles.get(style, default_style)
|
||||
if n == '':
|
||||
return txt
|
||||
elif txt == '':
|
||||
return n
|
||||
else:
|
||||
return n + ', ' + txt
|
||||
return join_prompts(n, txt)
|
||||
|
||||
Reference in New Issue
Block a user