runtime error
asyn.py", line 56, in _runner result[0] = await coro File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 347, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1185, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/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 "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 661, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 57, in generate_answers save_to_dataset(image_path, question, answer_p2s_base, answer_p2s_large, answer_layoutlm, answer_donut) File "/home/user/app/app.py", line 20, in save_to_dataset dataset = datasets.Dataset.from_dict(dataset_dict) File "/usr/local/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 912, in from_dict pa_table = InMemoryTable.from_pydict(mapping=mapping) File "/usr/local/lib/python3.10/site-packages/datasets/table.py", line 758, in from_pydict return cls(pa.Table.from_pydict(*args, **kwargs)) File "pyarrow/table.pxi", line 1813, in pyarrow.lib._Tabular.from_pydict File "pyarrow/table.pxi", line 5348, in pyarrow.lib._from_pydict File "pyarrow/table.pxi", line 3991, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 3271, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1 named question expected length 62 but got length 24
Container logs:
Fetching error logs...