import os

import uvicorn

from .api import create_app

app = create_app()

def run():
    uvicorn.run(
        "polyform_backend.main:app",
        host=os.getenv("HOST", "0.0.0.0"),
        port=int(os.getenv("PORT", "8000")),
        reload=False,
    )
