From 46cab81d6fde00af3eaa3c9683a9736c4d8bc2a1 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Thu, 25 May 2023 22:01:48 -0400 Subject: [PATCH] fix missing web_dir --- invokeai/app/api_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/app/api_app.py b/invokeai/app/api_app.py index 6c868266be..c049950ae7 100644 --- a/invokeai/app/api_app.py +++ b/invokeai/app/api_app.py @@ -15,6 +15,8 @@ from fastapi_events.middleware import EventHandlerASGIMiddleware from pathlib import Path from pydantic.schema import schema +import invokeai.frontend.web as web_dir + from .api.dependencies import ApiDependencies from .api.routers import sessions, models, images from .api.sockets import SocketIO @@ -124,7 +126,6 @@ app.openapi = custom_openapi # Override API doc favicons app.mount("/static", StaticFiles(directory=Path(web_dir.__path__[0], 'static/dream_web')), name="static") - @app.get("/docs", include_in_schema=False) def overridden_swagger(): return get_swagger_ui_html(