mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
suffix mode
This commit is contained in:
@@ -961,10 +961,7 @@ aspect_ratios = {str(v[0]) + '×' + str(v[1]): v for k, v in SD_XL_BASE_RATIOS.i
|
||||
|
||||
def apply_style_positive(style, txt):
|
||||
p, n = styles.get(style, default_style)
|
||||
ps = p.split('{prompt}')
|
||||
if len(ps) != 2:
|
||||
return txt, ''
|
||||
return ps[0] + txt, ps[1]
|
||||
return p.replace('{prompt}', txt)
|
||||
|
||||
|
||||
def apply_style_negative(style, txt):
|
||||
|
||||
Reference in New Issue
Block a user