runtime error
Exit code: 1. Reason: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning. /usr/local/lib/python3.12/site-packages/fastai/learner.py:456: UserWarning: load_learner` uses Python's insecure pickle module, which can execute malicious arbitrary code when loading. Only load files you trust. If you only need to load model weights and optimizer state, use the safe `Learner.load` instead. warn("load_learner` uses Python's insecure pickle module, which can execute malicious arbitrary code when loading. Only load files you trust.\nIf you only need to load model weights and optimizer state, use the safe `Learner.load` instead.") Traceback (most recent call last): File "/app/app.py", line 21, in <module> learn = load_learner('export.pkl') ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fastai/learner.py", line 458, in load_learner res = torch.load(fname, map_location=map_loc, pickle_module=pickle_module, **load_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 1610, in load return _load( ^^^^^^ File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 2221, in _load result = unpickler.load() ^^^^^^^^^^^^^^^^ TypeError: type 'types.UnionType' is not subscriptable
Container logs:
Fetching error logs...