Spaces:
Sleeping
Sleeping
| """ | |
| 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) | |