Fixed serving the webui
This commit is contained in:
@@ -1508,13 +1508,14 @@ def create_app(args):
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return app
|
|
||||||
|
|
||||||
# Serve the static files
|
# Serve the static files
|
||||||
static_dir = Path(__file__).parent / "static"
|
static_dir = Path(__file__).parent / "static"
|
||||||
static_dir.mkdir(exist_ok=True)
|
static_dir.mkdir(exist_ok=True)
|
||||||
app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
|
app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
|
||||||
|
|
||||||
|
return app
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
Reference in New Issue
Block a user