File size: 355 Bytes
dd85fb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
Thin entrypoint for local runs.
Imports the FastAPI app from the backend package and runs it.
"""

import os
import uvicorn

from backend.py.app.main import app  # noqa: F401


if __name__ == "__main__":
    host = os.getenv("HOST", "127.0.0.1")
    port = int(os.getenv("PORT", "7862"))
    uvicorn.run("app:app", host=host, port=port, reload=False)