refactor filename pattern handling

This commit is contained in:
Vladimir Mandic
2023-10-11 11:38:23 -04:00
parent 38154c65a2
commit 20c2d83ad7
9 changed files with 103 additions and 123 deletions
+5 -2
View File
@@ -324,8 +324,11 @@ def parse_prompt_attention(text):
whitespace = ' '
def multiply_range(start_position, multiplier):
for p in range(start_position, len(res)):
res[p][1] *= multiplier
try:
for p in range(start_position, len(res)):
res[p][1] *= multiplier
except Exception as e:
log(f'Prompt parser: {e}')
for m in re_attention.finditer(text):
text = m.group(0)