mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix linebreak strip
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ def parse(infotext):
|
||||
params['Prompt'] = prompt
|
||||
params['Negative prompt'] = negative
|
||||
for key, val in params.copy().items():
|
||||
val = unquote(val).strip(" ,\n\\n")
|
||||
val = unquote(val).strip(" ,\n").replace('\\\n', '')
|
||||
size = re_size.match(val)
|
||||
if val.replace('.', '', 1).isdigit():
|
||||
params[key] = float(val) if '.' in val else int(val)
|
||||
|
||||
Reference in New Issue
Block a user