prshntdxt's picture
Deploy Forest Segmentation API with LFS
c82cafe
raw
history blame contribute delete
445 Bytes
#!/usr/bin/env python3
"""
Entry point for FastAPI application.
Runs uvicorn server on configurable host/port.
"""
import os
import uvicorn
from main import app
if __name__ == "__main__":
host = os.getenv("HOST", "0.0.0.0")
port = int(os.getenv("PORT", "7860"))
print(f"Starting Forest Segmentation API on {host}:{port}")
uvicorn.run(
app,
host=host,
port=port,
log_level="info"
)