aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-23 18:13:37 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-23 18:13:37 +0000
commite0ca4dfbc10e0af8dfc4185e5e758f33fd2f0d81 (patch)
treef90814518f9fd504f0e34f82f3efcd62220b943d /modules/api/models.py
parente3f0e34cd6de78a17fc22c9a45d28db774256e79 (diff)
downloadstable-diffusion-webui-gfx803-e0ca4dfbc10e0af8dfc4185e5e758f33fd2f0d81.tar.gz
stable-diffusion-webui-gfx803-e0ca4dfbc10e0af8dfc4185e5e758f33fd2f0d81.tar.bz2
stable-diffusion-webui-gfx803-e0ca4dfbc10e0af8dfc4185e5e758f33fd2f0d81.zip
Update endpoints to use gradio's own utils functions
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index bbd0ef53..209f8af5 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -4,8 +4,8 @@ from modules.shared import sd_upscalers
class TextToImageResponse(BaseModel):
images: list[str] = Field(default=None, title="Image", description="The generated image in base64 format.")
- parameters: Json
- info: Json
+ parameters: str
+ info: str
class ExtrasBaseRequest(BaseModel):
resize_mode: Literal[0, 1] = Field(default=0, title="Resize Mode", description="Sets the resize mode: 0 to upscale by upscaling_resize amount, 1 to upscale up to upscaling_resize_h x upscaling_resize_w.")