Skip to content

Commit

Permalink
Don't emit empty template/negative template into infotext (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx authored Dec 11, 2023
1 parent f74ae35 commit 2f36e0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sd_dynamic_prompts/dynamic_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,11 @@ def process(
)

if opts.dp_write_raw_template:
p.extra_generation_params["Template"] = original_prompt
p.extra_generation_params["Negative Template"] = original_negative_prompt
params = p.extra_generation_params
if original_prompt:
params["Template"] = original_prompt
if original_negative_prompt:
params["Negative Template"] = original_negative_prompt

p.all_prompts = all_prompts
p.all_negative_prompts = all_negative_prompts
Expand Down

0 comments on commit 2f36e0f

Please sign in to comment.