add missing requirement for api and fix some typos

This commit is contained in:
AUTOMATIC
2022-10-17 11:50:20 +03:00
parent 964b63c042
commit d42125baf6
4 changed files with 4 additions and 2 deletions

View File

@@ -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"])