runtime error

Space not ready. Reason: Error, exitCode: 1, message: None

Container logs:

Traceback (most recent call last):
  File "app.py", line 5, in <module>
    learn = load_learner('finetunedClass.pth')
  File "/home/user/.local/lib/python3.8/site-packages/fastai/learner.py", line 397, in load_learner
    res.dls.cpu()
AttributeError: 'collections.OrderedDict' object has no attribute 'dls'