mirror of
https://github.com/HKUDS/LightRAG.git
synced 2026-01-06 03:40:46 +00:00
Added serving a web ui
Serving webui
This commit is contained in:
parent
3d93df4049
commit
dfd7f74921
@ -1423,7 +1423,11 @@ 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")
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
import uvicorn
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user