Spaces:
Sleeping
Sleeping
#!/usr/bin/env python3 | |
""" | |
Simple script to run the FastAPI application | |
""" | |
import uvicorn | |
import os | |
import sys | |
# Add the current directory to Python path | |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
if __name__ == "__main__": | |
print("π Starting AI Todo App Backend...") | |
print("π API Documentation: http://localhost:7860/docs") | |
print("π Health Check: http://localhost:7860/health") | |
print("=" * 50) | |
uvicorn.run( | |
"app.main:app", | |
host="0.0.0.0", | |
port=7860, | |
reload=True, | |
log_level="info" | |
) |