Commit d42125ba authored by AUTOMATIC's avatar AUTOMATIC

add missing requirement for api and fix some typos

parent 964b63c0
......@@ -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"])
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment