Skip to content

Commit

Permalink
fix(api): handle empty negative prompts in exif data
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jun 27, 2023
1 parent 732eb99 commit 7cbb419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}, "
Expand Down

0 comments on commit 7cbb419

Please sign in to comment.