runtime error

ome/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread return await future File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) File "/home/user/.local/lib/python3.10/site-packages/gradio/utils.py", line 661, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 12, in image_classifier result = model.predict(source=inp) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/model.py", line 257, in predict return self.predictor.predict_cli(source=source) if is_cli else self.predictor(source=source, stream=stream) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/predictor.py", line 198, in __call__ return list(self.stream_inference(source, model, *args, **kwargs)) # merge list of Result into one File "/home/user/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 35, in generator_context response = gen.send(None) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/engine/predictor.py", line 262, in stream_inference im = self.preprocess(im0s) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/models/yolo/classify/predict.py", line 44, in preprocess img = torch.stack([self.transforms(Image.fromarray(cv2.cvtColor(im, cv2.COLOR_BGR2RGB))) for im in img], File "/home/user/.local/lib/python3.10/site-packages/ultralytics/models/yolo/classify/predict.py", line 44, in <listcomp> img = torch.stack([self.transforms(Image.fromarray(cv2.cvtColor(im, cv2.COLOR_BGR2RGB))) for im in img], File "/home/user/.local/lib/python3.10/site-packages/torchvision/transforms/transforms.py", line 95, in __call__ img = t(img) File "/home/user/.local/lib/python3.10/site-packages/ultralytics/data/augment.py", line 1199, in __call__ imh, imw = im.shape[:2] AttributeError: 'Image' object has no attribute 'shape'. Did you mean: 'save'?

Container logs:

Fetching error logs...