runtime error
Exit code: 1. Reason: n 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 "/usr/local/lib/python3.13/site-packages/fastai/learner.py", line 457, in load_learner res = torch.load(fname, map_location=map_loc, pickle_module=pickle_module, **load_kwargs) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 1530, in load return _load( opened_zipfile, ...<3 lines>... **pickle_load_args, ) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 2122, in _load result = unpickler.load() File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 2111, in find_class return super().find_class(mod_name, name) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/fastcore/transform.py", line 2, in __getattr__ raise ImportError( ...<2 lines>... ) ImportError: Could not import 'Pipeline' from fastcore.transform - this module has been moved to the fasttransform package. To migrate your code, please see the migration guide at: https://answerdotai.github.io/fasttransform/fastcore_migration_guide.html During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/app.py", line 9, in <module> learn = load_learner('export.pkl') # Assumes you have a trained model for grapevine diseases File "/usr/local/lib/python3.13/site-packages/fastai/learner.py", line 460, in load_learner raise RuntimeError(f"Loading model {fname=}, attempted to import from `fastcore.dispatch` and/or `fastcore.transform` which are deprecated in `fastai>=2.8.0`.\nDowngrade to `fastai<2.8.0` if you want to load this model.") RuntimeError: Loading model fname='export.pkl', attempted to import from `fastcore.dispatch` and/or `fastcore.transform` which are deprecated in `fastai>=2.8.0`. Downgrade to `fastai<2.8.0` if you want to load this model.
Container logs:
Fetching error logs...