j2damax commited on
Commit
1cd3461
·
verified ·
1 Parent(s): 65d943f

Clear space for fresh deployment

Browse files
Files changed (1) hide show
  1. main.py +0 -21
main.py DELETED
@@ -1,21 +0,0 @@
1
- """Minimal FastAPI bootstrap that wires modular routes and startup load."""
2
- from fastapi import FastAPI
3
- import os
4
- from app.routes import router, startup_load
5
- from app import config
6
-
7
- app = FastAPI(title="Hotel Cancellation Prediction API", version=config.APP_VERSION)
8
-
9
- @app.on_event("startup")
10
- async def _load():
11
- startup_load()
12
-
13
- @app.get("/", response_model=dict)
14
- async def root():
15
- return {"message": "Hotel Cancellation Prediction API", "version": config.APP_VERSION, "endpoints": {"health": "/health", "predict": "/predict", "docs": "/docs"}}
16
-
17
- app.include_router(router)
18
-
19
- if __name__ == "__main__":
20
- import uvicorn
21
- uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", "8000")))