refactor: move web entry main.py to tools/serve.py

This commit is contained in:
2026-05-12 00:44:06 +08:00
parent 31ad47dc0b
commit b0f0d6db11

19
tools/serve.py Normal file
View File

@@ -0,0 +1,19 @@
# sites/ai_mouse/main.py
"""ai-mouse web UI entry point.
Usage:
uv run python sites/ai_mouse/main.py
"""
from __future__ import annotations
import webbrowser
import uvicorn
from tools.server import create_app
app = create_app()
if __name__ == "__main__":
webbrowser.open("http://127.0.0.1:8765")
uvicorn.run(app, host="127.0.0.1", port=8765)