runtime error

Traceback (most recent call last): File "app.py", line 6, in <module> model = load_learner('model.pkl') File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 446, in load_learner try: res = torch.load(fname, map_location=map_loc, pickle_module=pickle_module) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 809, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 1172, in _load result = unpickler.load() File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 1165, 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 'Residual' on <module 'timm.models.levit' from '/home/user/.local/lib/python3.8/site-packages/timm/models/levit.py'>

Container logs:

Fetching error logs...