Commit
·
93ec2a8
1
Parent(s):
185f1d7
version with models
Browse files
main.py
CHANGED
@@ -59,8 +59,7 @@ async def load_models() -> bool:
|
|
59 |
async def lifespan(app: FastAPI):
|
60 |
# Startup
|
61 |
logger.info("Starting FastAPI application...")
|
62 |
-
|
63 |
-
success = True
|
64 |
if not success:
|
65 |
logger.error("Failed to load models. Application will not work properly.")
|
66 |
|
|
|
59 |
async def lifespan(app: FastAPI):
|
60 |
# Startup
|
61 |
logger.info("Starting FastAPI application...")
|
62 |
+
success = await load_models()
|
|
|
63 |
if not success:
|
64 |
logger.error("Failed to load models. Application will not work properly.")
|
65 |
|