1
0
Fork 0

fix(api): handle empty negative prompts in exif data

This commit is contained in:
Sean Sube 2023-06-26 21:38:55 -05:00
parent 732eb9913e
commit 7cbb4197ba
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def str_params(
hash_map.update(dict(lora_pairs))
return (
f"{params.input_prompt}\nNegative prompt: {params.input_negative_prompt}\n"
f"{params.input_prompt or ''}\nNegative prompt: {params.input_negative_prompt or ''}\n"
f"Steps: {params.steps}, Sampler: {params.scheduler}, CFG scale: {params.cfg}, "
f"Seed: {params.seed}, Size: {size.width}x{size.height}, "
f"Model hash: {model_hash}, Model: {model_name}, "