josephrw's picture
Upload api/index.py with huggingface_hub
403e68d verified
Raw
History Blame Contribute Delete
410 Bytes
"""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)