runtime error

ocal/lib/python3.8/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro File "/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py", line 273, in create await self.cache() File "/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py", line 308, in cache prediction = await Context.root_block.process_api( File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1015, in process_api result = await self.call_function( File "/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py", line 833, in call_function prediction = await anyio.to_thread.run_sync( File "/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread return await future File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) File "app.py", line 36, in image_fn return results.render()[0] File "/home/user/.local/lib/python3.8/site-packages/yolov7/models/common.py", line 1014, in render self.display(render=True) # render results File "/home/user/.local/lib/python3.8/site-packages/yolov7/models/common.py", line 988, in display plot_one_box(box, img, label=label, color=colors[int(cls) % 10]) File "/home/user/.local/lib/python3.8/site-packages/yolov7/utils/plots.py", line 62, in plot_one_box cv2.rectangle(img, c1, c2, color, thickness=tl, lineType=cv2.LINE_AA) cv2.error: OpenCV(4.9.0) :-1: error: (-5:Bad argument) in function 'rectangle' > Overload resolution failed: > - img marked as output argument, but provided NumPy array marked as readonly > - Expected Ptr<cv::UMat> for argument 'img' > - argument for rectangle() given by name ('thickness') and position (4) > - argument for rectangle() given by name ('thickness') and position (4)

Container logs:

Fetching error logs...