Don't add commas to join prompts when one is empty

This commit is contained in:
somebody
2022-11-24 23:18:24 -06:00
parent 44385730f6
commit 3f0511d7bd

View File

@@ -9372,7 +9372,7 @@ def text2img_api(prompt,
#"override_settings": {},
#"sampler_index": "Euler"
final_imgen_params = {
"prompt": "{}, {}".format(prompt, art_guide),
"prompt": ", ".join(filter(bool, [prompt, art_guide])),
"n_iter": 1,
"width": 512,
"height": 512,