aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-23 19:01:16 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-23 19:01:16 +0000
commit1e625624ba6ab3dfc167f0a5226780bb9b50fb58 (patch)
tree4b8cbdbaa0b05305bd5de7b9b39f83c7154f3e7c /modules/api/models.py
parent866b36d705a338d299aba385788729d60f7d48c8 (diff)
downloadstable-diffusion-webui-gfx803-1e625624ba6ab3dfc167f0a5226780bb9b50fb58.tar.gz
stable-diffusion-webui-gfx803-1e625624ba6ab3dfc167f0a5226780bb9b50fb58.tar.bz2
stable-diffusion-webui-gfx803-1e625624ba6ab3dfc167f0a5226780bb9b50fb58.zip
Add folder processing endpoint
Also minor refactor
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index 362e6277..6f096807 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -150,4 +150,8 @@ class ExtrasBatchImagesRequest(ExtrasBaseRequest):
imageList: list[str] = 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 ExtrasFoldersRequest(ExtrasBaseRequest):
+ input_dir: str = Field(title="Input directory", description="Directory path from where to take the images")
+ output_dir: str = Field(title="Output directory", description="Directory path to put the processsed images into")