aboutsummaryrefslogtreecommitdiff
path: root/modules/api
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-17 11:50:20 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-10-17 11:50:20 +0300
commitd42125baf62880854ad06af06c15c23e7e50cca6 (patch)
treeffad23a3468faeb6fdd6f60e6eeb4e92194c1b85 /modules/api
parent964b63c0423a861bd67c40b59f767e7037051083 (diff)
add missing requirement for api and fix some typos
Diffstat (limited to 'modules/api')
-rw-r--r--modules/api/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 4d9619a8..fd09d352 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -18,7 +18,7 @@ class TextToImageResponse(BaseModel):
class Api:
- def __init__(self, txt2img, img2img, run_extras, run_pnginfo):
+ def __init__(self):
self.router = APIRouter()
app.add_api_route("/v1/txt2img", self.text2imgapi, methods=["POST"])