mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 04:11:15 -08:00
fix program breaking on empty prompt
This commit is contained in:
parent
2f2d356e4c
commit
4127f4aff8
1 changed files with 3 additions and 0 deletions
|
|
@ -212,4 +212,7 @@ def parse_prompt_attention(text):
|
|||
for pos in square_brackets:
|
||||
multiply_range(pos, square_bracket_multiplier)
|
||||
|
||||
if len(res) == 0:
|
||||
res = [["", 1.0]]
|
||||
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue