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:
@@ -6,8 +6,7 @@ from modules.path import fooocus_expansion_path
|
||||
fooocus_magic_split = [
|
||||
', extremely',
|
||||
', trending',
|
||||
', intricate',
|
||||
# '. The',
|
||||
', intricate,',
|
||||
]
|
||||
dangrous_patterns = '[]【】()()|::'
|
||||
|
||||
@@ -16,7 +15,7 @@ def safe_str(x):
|
||||
x = str(x)
|
||||
for _ in range(16):
|
||||
x = x.replace(' ', ' ')
|
||||
return x.rstrip(",. \r\n")
|
||||
return x.strip(",. \r\n")
|
||||
|
||||
|
||||
def remove_pattern(x, pattern):
|
||||
|
||||
Reference in New Issue
Block a user