Skip to content

i am having the same error, pls what part of the code do i need to add the pip install numpy, i tried installing it and it keeps restarting my session on colab #46

Description

@Chijiaku

@sumit-jr What to do? I'm getting this error saying

Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 517, in predict

output = await route_utils.call_process_api(

File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 216, in call_process_api

output = await app.get_blocks().process_api(

File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1555, in process_api

result = await self.call_function(

File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1193, in call_function

prediction = await anyio.to_thread.run_sync(

File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync

return await get_asynclib().run_sync_in_worker_thread(

File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread

return await future

File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run

result = context.run(func, *args)

File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 654, in wrapper

response = f(*args, **kwargs)

File "", line 14, in run

op = os.listdir("/content/output")[0]

IndexError: list index out of range

Originally posted by @paraskamble in #33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions