refactor: move web entry main.py to tools/serve.py
This commit is contained in:
19
tools/serve.py
Normal file
19
tools/serve.py
Normal 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)
|
||||
Reference in New Issue
Block a user