Newnai / app.py
Logankunfall's picture
Upload 16 files
621a86c verified
raw
history blame contribute delete
247 Bytes
import os
# Hugging Face Spaces entrypoint: run FastAPI app on $PORT
from backend.app import app
if __name__ == "__main__":
port = int(os.environ.get("PORT", "7860"))
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=port)