todo-ai / run.py
bilalsxadad1231231
Initial commit: AI Todo App Backend for Hugging Face Spaces
bf78a48
#!/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"
)