Fixed serving the webui

This commit is contained in:
Saifeddine ALOUI
2025-01-24 13:54:49 +01:00
committed by GitHub
parent d9140a65e9
commit a0c91d41b9

View File

@@ -1508,13 +1508,14 @@ def create_app(args):
},
}
return app
# Serve the static files
static_dir = Path(__file__).parent / "static"
static_dir.mkdir(exist_ok=True)
app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
return app
def main():
args = parse_args()
import uvicorn