mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
safer str
This commit is contained in:
@@ -4,6 +4,8 @@ from modules.path import fooocus_expansion_path
|
|||||||
|
|
||||||
|
|
||||||
def safe_str(x):
|
def safe_str(x):
|
||||||
|
for _ in range(16):
|
||||||
|
x = x.replace(' ', ' ')
|
||||||
return str(x).rstrip(",. \r\n")
|
return str(x).rstrip(",. \r\n")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user