fix(api): handle empty negative prompts in exif data
This commit is contained in:
parent
732eb9913e
commit
7cbb4197ba
|
@ -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}, "
|
||||
|
|
Loading…
Reference in New Issue