Fixed serving the webui
This commit is contained in:
parent
d9140a65e9
commit
a0c91d41b9
1 changed files with 4 additions and 3 deletions
|
|
@ -1507,13 +1507,14 @@ def create_app(args):
|
|||
"max_tokens": args.max_tokens,
|
||||
},
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue