runtime error

( File "/home/user/.local/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/.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 650, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 37, in predict generated_ids = client.image_to_text(inputs) File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/inference/_client.py", line 764, in image_to_text response = self.post(data=image, model=model, task="image-to-text") File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/inference/_client.py", line 226, in post response = get_session().post( File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, **kwargs) File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 575, in request prep = self.prepare_request(req) File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 486, in prepare_request p.prepare( File "/home/user/.local/lib/python3.10/site-packages/requests/models.py", line 371, in prepare self.prepare_body(data, files, json) File "/home/user/.local/lib/python3.10/site-packages/requests/models.py", line 565, in prepare_body self.prepare_content_length(body) File "/home/user/.local/lib/python3.10/site-packages/requests/models.py", line 576, in prepare_content_length length = super_len(body) File "/home/user/.local/lib/python3.10/site-packages/requests/utils.py", line 184, in super_len o.seek(0, 2) TypeError: Image.seek() takes 2 positional arguments but 3 were given

Container logs:

Fetching error logs...