diff options
author | timntorres <timothynarcisotorres@gmail.com> | 2022-10-29 21:55:30 +0000 |
---|---|---|
committer | timntorres <timothynarcisotorres@gmail.com> | 2022-10-29 21:55:30 +0000 |
commit | e709afb0f774dde34a0a0f8d972a7bd2fd0f023a (patch) | |
tree | c222a84c2e92d245e2a8c736f14740d94cfae380 /modules/api/models.py | |
parent | 2c4d20388425a5e40b93eef3722e42e8d375fbb4 (diff) | |
parent | e7254746bbfbff45099db44a8d4d25dd6181877d (diff) | |
download | stable-diffusion-webui-gfx803-e709afb0f774dde34a0a0f8d972a7bd2fd0f023a.tar.gz stable-diffusion-webui-gfx803-e709afb0f774dde34a0a0f8d972a7bd2fd0f023a.tar.bz2 stable-diffusion-webui-gfx803-e709afb0f774dde34a0a0f8d972a7bd2fd0f023a.zip |
Merge commit 'e7254746bbfbff45099db44a8d4d25dd6181877d' into 3825-save-hypernet-strength-to-info
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index dd122321..58e8e58b 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -1,4 +1,5 @@ import inspect +from click import prompt from pydantic import BaseModel, Field, create_model from typing import Any, Optional from typing_extensions import Literal @@ -148,4 +149,10 @@ class ExtrasBatchImagesRequest(ExtrasBaseRequest): imageList: list[FileData] = Field(title="Images", description="List of images to work on. Must be Base64 strings") class ExtrasBatchImagesResponse(ExtraBaseResponse): - images: list[str] = Field(title="Images", description="The generated images in base64 format.")
\ No newline at end of file + images: list[str] = Field(title="Images", description="The generated images in base64 format.") + +class PNGInfoRequest(BaseModel): + image: str = Field(title="Image", description="The base64 encoded PNG image") + +class PNGInfoResponse(BaseModel): + info: str = Field(title="Image info", description="A string with all the info the image had")
\ No newline at end of file |