Spaces:
Sleeping
Sleeping
File size: 421 Bytes
68bc1c7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/env python3
"""
Generic startup script for hosted AnemiaLens backends.
Uses PORT and HOST environment variables when provided by the host.
"""
import os
import uvicorn
from app.main import app
if __name__ == "__main__":
port = int(os.environ.get("PORT", 8000))
host = os.environ.get("HOST", "0.0.0.0")
print(f"Starting AnemiaLens on {host}:{port}")
uvicorn.run(app, host=host, port=port)
|