aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/api.py
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-26 12:54:26 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-26 12:54:26 +0000
commitb2e0d8ba789b345145436f6e960a3f0a896a6643 (patch)
tree9642d10a09dbc7ad098e524dba3e63845158c498 /modules/api/api.py
parent8320963dcbc80e9c4cdef6124cb3cf0d246badd8 (diff)
downloadstable-diffusion-webui-gfx803-b2e0d8ba789b345145436f6e960a3f0a896a6643.tar.gz
stable-diffusion-webui-gfx803-b2e0d8ba789b345145436f6e960a3f0a896a6643.tar.bz2
stable-diffusion-webui-gfx803-b2e0d8ba789b345145436f6e960a3f0a896a6643.zip
Remove folder endpoint
Diffstat (limited to 'modules/api/api.py')
-rw-r--r--modules/api/api.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index ca289d9f..49c213ea 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -32,7 +32,6 @@ class Api:
self.app.add_api_route("/sdapi/v1/img2img", self.img2imgapi, methods=["POST"], response_model=ImageToImageResponse)
self.app.add_api_route("/sdapi/v1/extra-single-image", self.extras_single_image_api, methods=["POST"], response_model=ExtrasSingleImageResponse)
self.app.add_api_route("/sdapi/v1/extra-batch-images", self.extras_batch_images_api, methods=["POST"], response_model=ExtrasBatchImagesResponse)
- self.app.add_api_route("/sdapi/v1/extra-folder-images", self.extras_folder_processing_api, methods=["POST"], response_model=ExtrasBatchImagesResponse)
def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI):
sampler_index = sampler_to_index(txt2imgreq.sampler_index)
@@ -126,14 +125,6 @@ class Api:
return ExtrasBatchImagesResponse(images=list(map(encode_pil_to_base64, result[0])), html_info=result[1])
- def extras_folder_processing_api(self, req:ExtrasFoldersRequest):
- reqDict = setUpscalers(req)
-
- with self.queue_lock:
- result = run_extras(extras_mode=2, image=None, image_folder=None, **reqDict)
-
- return ExtrasBatchImagesResponse(images=list(map(encode_pil_to_base64, result[0])), html_info=result[1])
-
def pnginfoapi(self):
raise NotImplementedError