diff options
author | noodleanon <122053346+noodleanon@users.noreply.github.com> | 2023-01-07 14:21:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-07 14:21:31 +0000 |
commit | d38ede71d5330958f4bbac5f99c1be3c146b506a (patch) | |
tree | f9e70b6551eae06a60b7e0b78564b4c6f0609ca2 /modules/api/models.py | |
parent | 50e25362794d46cd9a55c70e953a8b4126fd42f7 (diff) | |
download | stable-diffusion-webui-gfx803-d38ede71d5330958f4bbac5f99c1be3c146b506a.tar.gz stable-diffusion-webui-gfx803-d38ede71d5330958f4bbac5f99c1be3c146b506a.tar.bz2 stable-diffusion-webui-gfx803-d38ede71d5330958f4bbac5f99c1be3c146b506a.zip |
Added script support in txt2img endpoint
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index c85eb94d..ce43c858 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -100,7 +100,7 @@ class PydanticModelGenerator: StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator( "StableDiffusionProcessingTxt2Img", StableDiffusionProcessingTxt2Img, - [{"key": "sampler_index", "type": str, "default": "Euler"}] + [{"key": "sampler_index", "type": str, "default": "Euler"}, {"key": "script_name", "type": str, "default": None}, {"key": "script_args", "type": list, "default": []}] ).generate_model() StableDiffusionImg2ImgProcessingAPI = PydanticModelGenerator( |