Video section is throwing error

#3
by ysharma HF staff - opened

Hi @joselobenitezg great work with the Sapiens demo.
I have attempted to use 'Seg' and 'Depth' so far, but both are generating the below error for me. It would also be great if you could display the error message in the modal using gr.Error for a better user experience.

These Docs might prove helpful :

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 321, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1935, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
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 2177, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/spaces/zero/wrappers.py", line 214, in gradio_handler
raise res.value
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Hi! let's me check! thank you for the report! it is happening with ZeroGPU specially when the model is too large and ran out of capacity

how long is your video? with short videos it is working
It has something to do with how much time do we need zeroGPU with videos inference

but i will defenitly add error handling

Sign up or log in to comment