diff options
author | Rogerooo <hugo.lopesmatias@gmail.com> | 2022-11-22 14:02:59 +0000 |
---|---|---|
committer | Rogerooo <hugo.lopesmatias@gmail.com> | 2022-11-22 14:02:59 +0000 |
commit | c27a973c82c374f47fb279c1b9b8de7288fd729d (patch) | |
tree | 7da145d94ed5611f838240585347f56f2f0aecf9 /modules/api/api.py | |
parent | 828438b4a190759807f9054932cae3a8b880ddf1 (diff) | |
download | stable-diffusion-webui-gfx803-c27a973c82c374f47fb279c1b9b8de7288fd729d.tar.gz stable-diffusion-webui-gfx803-c27a973c82c374f47fb279c1b9b8de7288fd729d.tar.bz2 stable-diffusion-webui-gfx803-c27a973c82c374f47fb279c1b9b8de7288fd729d.zip |
fix null negative_prompt on get requests
Small typo that causes a bug when returning negative prompts from the get request.
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 7a567be3..08e03c13 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -305,7 +305,7 @@ class Api: styleList = [] for k in shared.prompt_styles.styles: style = shared.prompt_styles.styles[k] - styleList.append({"name":style[0], "prompt": style[1], "negative_prompr": style[2]}) + styleList.append({"name":style[0], "prompt": style[1], "negative_prompt": style[2]}) return styleList |