add missing requirement for api and fix some typos
This commit is contained in:
parent
964b63c042
commit
d42125baf6
4 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
torchdiffeq
|
torchdiffeq
|
||||||
kornia
|
kornia
|
||||||
lark
|
lark
|
||||||
|
inflection
|
||||||
|
|
|
@ -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
|
||||||
|
|
2
webui.py
2
webui.py
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue