Spaces:
Sleeping
Sleeping
File size: 759 Bytes
5c095ca 99cac84 5c095ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | """
Start the ResearchPilot FastAPI server.
Run from project root:
python run_api.py
Then visit:
http://localhost:8000/docs <- Interactive API documentation
http://localhost:8000/health <- Health check
http://localhost:8000/ <- API info
"""
import uvicorn
from config.settings import API_HOST, API_PORT, API_RELOAD
if __name__ == "__main__":
print("Starting ResearchPilot API...")
print(f"API docs: http://localhost:{API_PORT}/docs")
print(f"Health: http://localhost:{API_PORT}/health")
uvicorn.run(
"src.api.main:app",
host = API_HOST,
port = API_PORT,
reload = False, # Disable auto-reload (saves ~10s scanning 3000+ data files)
workers = 1,
) |