mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-21 23:33:57 +00:00
fix program breaking on empty prompt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user