Skip to content

Commit 8ca070f

Browse files
committed
refactor: remove model download and directory creation from FastAPI lifespan
1 parent 1e145fe commit 8ca070f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tree-disk-api/src/main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
from fastapi.middleware.cors import CORSMiddleware
44
import uvicorn
55

6-
from config.preparation import create_dirs, download_u2net_model, download_yolo_model
76
from api.router import router
87

98

109
@asynccontextmanager
1110
async def lifespan(app: FastAPI):
1211
print("FastAPI app started.")
1312

14-
create_dirs()
15-
download_u2net_model()
16-
download_yolo_model()
17-
1813
yield
1914

2015

0 commit comments

Comments
 (0)