Added serving a web ui
Serving webui
This commit is contained in:
@@ -1423,6 +1423,10 @@ def create_app(args):
|
|||||||
|
|
||||||
return app
|
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")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
|
Reference in New Issue
Block a user