(parser) fix missing argument default in parse_legacy_blend

This commit is contained in:
Eugene Brodsky 2023-01-26 19:43:51 -05:00
parent c5914ce236
commit c5a9e70e7f

View File

@ -289,7 +289,7 @@ class PromptParser():
return self.flatten(root[0]) return self.flatten(root[0])
def parse_legacy_blend(self, text: str, skip_normalize: bool) -> Optional[Blend]: def parse_legacy_blend(self, text: str, skip_normalize: bool = False) -> Optional[Blend]:
weighted_subprompts = split_weighted_subprompts(text, skip_normalize=skip_normalize) weighted_subprompts = split_weighted_subprompts(text, skip_normalize=skip_normalize)
if len(weighted_subprompts) <= 1: if len(weighted_subprompts) <= 1:
return None return None