runtime error
Exit code: 3. Reason: /app/app.py:82: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead. Read more about it in the [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/). @app.on_event("startup") INFO: Started server process [1] INFO: Waiting for application startup. Attempting to load model and scaler... Error loading model: invalid load key, '\x0a'. Traceback (most recent call last): File "/app/app.py", line 38, in load_model_with_fallback model = pickle.load(model_file) Failed to load model: invalid load key, '\x0a'. _pickle.UnpicklingError: invalid load key, '\x0a'. ERROR: Traceback (most recent call last): File "/app/app.py", line 85, in startup_event load_model_with_fallback() File "/app/app.py", line 38, in load_model_with_fallback model = pickle.load(model_file) _pickle.UnpicklingError: invalid load key, '\x0a'. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan async with self.lifespan_context(app) as maybe_state: File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__ await self._router.startup() File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup await handler() File "/app/app.py", line 88, in startup_event sys.exit(1) SystemExit: 1 ERROR: Application startup failed. Exiting.
Container logs:
Fetching error logs...