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

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

@ -23,3 +23,4 @@ resize-right
torchdiffeq
kornia
lark
inflection

@ -22,3 +22,4 @@ resize-right==0.0.2
torchdiffeq==0.2.3
kornia==0.6.7
lark==1.1.2
inflection==0.5.1

@ -95,7 +95,7 @@ def initialize():
signal.signal(signal.SIGINT, sigint_handler)
def api()
def api():
initialize()
from modules.api.api import Api