File size: 410 Bytes
403e68d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | """Vercel serverless function entry point for AGI Infrastructure."""
import os
import sys
# Add app directory to path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app.main import app
# Vercel Python runtime auto-detects ASGI apps when `app` is exposed
# For local testing
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
|