Skip to content

Commit f8e41a9

Browse files
committed
fix various float parsing errors
1 parent c26732f commit f8e41a9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎modules/prompt_parser.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ def get_learned_conditioning(model, prompts, steps):
143143

144144

145145
re_AND = re.compile(r"\bAND\b")
146-
re_weight = re.compile(r"^(.*?)(?:\s*:\s*([-+]?\s*(?:\d+|\d*\.\d+)?))?\s*$")
147-
146+
re_weight = re.compile(r"^(.*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$")
148147

149148
def get_multicond_prompt_list(prompts):
150149
res_indexes = []

0 commit comments

Comments
 (0)