runtime error

Exit code: 1. Reason: gradio/helpers.py", line 460, in _start_caching await self.cache() File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/gradio/helpers.py", line 526, in cache prediction = await self.root_block.process_api( File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/gradio/blocks.py", line 2103, in process_api result = await self.call_function( File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/gradio/blocks.py", line 1650, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread return await future File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 967, in run result = context.run(func, *args) File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/gradio/utils.py", line 890, in wrapper response = f(*args, **kwargs) File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/gradio/utils.py", line 890, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 120, in video_processing_inference annotated_frame = detect_and_annotate( File "/home/user/app/app.py", line 56, in detect_and_annotate detections = model.predict(image, threshold=confidence) File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/rfdetr/detr.py", line 127, in predict image = F.to_tensor(image_or_path) File "/home/user/.pyenv/versions/3.10.18/lib/python3.10/site-packages/torchvision/transforms/functional.py", line 142, in to_tensor raise TypeError(f"pic should be PIL Image or ndarray. Got {type(pic)}") TypeError: pic should be PIL Image or ndarray. Got <class 'gradio.helpers.Progress'>

Container logs:

Fetching error logs...