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
+2 -3
View File
@@ -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):