mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-09 00:01:34 -07:00
gradio4
This commit is contained in:
parent
ac02216e54
commit
051375258c
15 changed files with 244 additions and 135 deletions
|
|
@ -207,7 +207,7 @@ class Api:
|
|||
self.router = APIRouter()
|
||||
self.app = app
|
||||
self.queue_lock = queue_lock
|
||||
api_middleware(self.app)
|
||||
#api_middleware(self.app) # XXX this will have to be fixed
|
||||
self.add_api_route("/sdapi/v1/txt2img", self.text2imgapi, methods=["POST"], response_model=models.TextToImageResponse)
|
||||
self.add_api_route("/sdapi/v1/img2img", self.img2imgapi, methods=["POST"], response_model=models.ImageToImageResponse)
|
||||
self.add_api_route("/sdapi/v1/extra-single-image", self.extras_single_image_api, methods=["POST"], response_model=models.ExtrasSingleImageResponse)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue