mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Don't add commas to join prompts when one is empty
This commit is contained in:
@@ -9372,7 +9372,7 @@ def text2img_api(prompt,
|
|||||||
#"override_settings": {},
|
#"override_settings": {},
|
||||||
#"sampler_index": "Euler"
|
#"sampler_index": "Euler"
|
||||||
final_imgen_params = {
|
final_imgen_params = {
|
||||||
"prompt": "{}, {}".format(prompt, art_guide),
|
"prompt": ", ".join(filter(bool, [prompt, art_guide])),
|
||||||
"n_iter": 1,
|
"n_iter": 1,
|
||||||
"width": 512,
|
"width": 512,
|
||||||
"height": 512,
|
"height": 512,
|
||||||
|
Reference in New Issue
Block a user