runtime error
Exit code: 1. Reason: /usr/local/lib/python3.10/site-packages/fastai/learner.py:455: 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 "/home/user/app/app.py", line 4, in <module> learn = load_learner('model.pkl') # make sure your model file is named exactly this File "/usr/local/lib/python3.10/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.10/site-packages/torch/serialization.py", line 1471, in load return _load( File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1964, in _load result = unpickler.load() File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1953, in find_class return super().find_class(mod_name, name) AttributeError: Custom classes or functions exported with your `Learner` not available in namespace. Re-declare/import before loading: Can't get attribute 'is_cat' on <module '__main__' from '/home/user/app/app.py'>
Container logs:
Fetching error logs...