prompt expansion v2

This commit is contained in:
lvmin
2023-09-11 02:48:36 -07:00
parent e6557a4ded
commit 0f658a97f7
6 changed files with 28 additions and 13 deletions
+4 -6
View File
@@ -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)