1
0
Fork 0

fix(api): use same parameter name as GUI for negative prompt

This commit is contained in:
Sean Sube 2023-01-11 21:50:19 -06:00
parent ef33301d6b
commit dc33b7c887
1 changed files with 2 additions and 2 deletions

View File

@ -192,9 +192,9 @@ def pipeline_from_request(pipeline: DiffusionPipeline):
# image params
prompt = request.args.get('prompt', default_prompt)
negative_prompt = request.args.get('negative', None)
negative_prompt = request.args.get('negativePrompt', None)
if negative_prompt == '':
if negative_prompt is not None and negative_prompt.strip() == '':
negative_prompt = None
cfg = get_and_clamp_float(request.args, 'cfg', default_cfg, config_params.get('cfg').get('max'), 0)