jacob-valdez's picture
Add BuilderBrain API server files for HF Spaces deployment
157c6fe
raw
history blame
340 Bytes
import os
import sys
import uvicorn
from pathlib import Path
# Add current directory to path for imports
sys.path.insert(0, str(Path(__file__).parent))
# Import the inference API app
from inference_api_app import app
if __name__ == "__main__":
port = int(os.environ.get("PORT", 7860))
uvicorn.run(app, host="0.0.0.0", port=port)