diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-11 12:41:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 12:41:30 +0000 |
commit | 6585cba20048576ebac8613c34c01dd85c894b86 (patch) | |
tree | 99a75b3ace9f5f9af64cef7207248703f10c457a /modules/api/models.py | |
parent | ac085628540d0ec6a988fad93f5b8f2154209571 (diff) | |
parent | 67c8e11be74180be19341aebbd6a246c37a79fbb (diff) | |
download | stable-diffusion-webui-gfx803-6585cba20048576ebac8613c34c01dd85c894b86.tar.gz stable-diffusion-webui-gfx803-6585cba20048576ebac8613c34c01dd85c894b86.tar.bz2 stable-diffusion-webui-gfx803-6585cba20048576ebac8613c34c01dd85c894b86.zip |
Merge pull request #4395 from snowmeow2/master
Add DeepDanbooru to the interrogate API
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index 34dbfa16..f9cd929e 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -170,6 +170,7 @@ class ProgressResponse(BaseModel): class InterrogateRequest(BaseModel): image: str = Field(default="", title="Image", description="Image to work on, must be a Base64 string containing the image's data.") + model: str = Field(default="clip", title="Model", description="The interrogate model used.") class InterrogateResponse(BaseModel): caption: str = Field(default=None, title="Caption", description="The generated caption for the image.") |