Skip to content

Commit

Permalink
add missing requirement for api and fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Oct 17, 2022
1 parent 964b63c commit d42125b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ resize-right
torchdiffeq
kornia
lark
inflection
1 change: 1 addition & 0 deletions requirements_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def sigint_handler(sig, frame):
signal.signal(signal.SIGINT, sigint_handler)


def api()
def api():
initialize()

from modules.api.api import Api
Expand Down

0 comments on commit d42125b

Please sign in to comment.