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): ...@@ -18,7 +18,7 @@ class TextToImageResponse(BaseModel):
class Api: class Api:
def __init__(self, txt2img, img2img, run_extras, run_pnginfo): def __init__(self):
self.router = APIRouter() self.router = APIRouter()
app.add_api_route("/v1/txt2img", self.text2imgapi, methods=["POST"]) app.add_api_route("/v1/txt2img", self.text2imgapi, methods=["POST"])
......
...@@ -23,3 +23,4 @@ resize-right ...@@ -23,3 +23,4 @@ resize-right
torchdiffeq torchdiffeq
kornia kornia
lark lark
inflection
...@@ -22,3 +22,4 @@ resize-right==0.0.2 ...@@ -22,3 +22,4 @@ resize-right==0.0.2
torchdiffeq==0.2.3 torchdiffeq==0.2.3
kornia==0.6.7 kornia==0.6.7
lark==1.1.2 lark==1.1.2
inflection==0.5.1
...@@ -95,7 +95,7 @@ def initialize(): ...@@ -95,7 +95,7 @@ def initialize():
signal.signal(signal.SIGINT, sigint_handler) signal.signal(signal.SIGINT, sigint_handler)
def api() def api():
initialize() initialize()
from modules.api.api import Api 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