File size: 248 Bytes
782323c
 
7aaf8ef
 
782323c
 
9481b36
782323c
9481b36
7aaf8ef
1
2
3
4
5
6
7
8
9
10
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)