Send empty prompts as valid generation parameter
This commit is contained in:
parent
5e012e4dfa
commit
46122c4ff6
|
@ -45,10 +45,7 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
|
||||||
else:
|
else:
|
||||||
prompt += ("" if prompt == "" else "\n") + line
|
prompt += ("" if prompt == "" else "\n") + line
|
||||||
|
|
||||||
if len(prompt) > 0:
|
|
||||||
res["Prompt"] = prompt
|
res["Prompt"] = prompt
|
||||||
|
|
||||||
if len(negative_prompt) > 0:
|
|
||||||
res["Negative prompt"] = negative_prompt
|
res["Negative prompt"] = negative_prompt
|
||||||
|
|
||||||
for k, v in re_param.findall(lastline):
|
for k, v in re_param.findall(lastline):
|
||||||
|
|
Loading…
Reference in New Issue