Spaces:
Running
Running
import os | |
from app.main import app | |
import uvicorn | |
# Get port from environment variable or default to 7860 | |
port = int(os.getenv("PORT", 7860)) | |
# Run the FastAPI application | |
if __name__ == "__main__": | |
uvicorn.run(app, host="0.0.0.0", port=port) |