gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Some Block-based gradio apps cannot be used with `gr.load`

Open juanluisrto opened this issue 2 years ago • 0 comments

Describe the bug

Im trying to load a space with gr.load. The gradio app loads but whenever I try to input anything I get an IndexError which looks pretty nasty.

Have you searched existing issues? 🔎

  • [X] I have searched and found no existing issues

Reproduction

import gradio as gr
demo = gr.load("spaces/troper/assistant")
demo.launch()

Screenshot

No response

Logs

File "/Users/juanluis/miniconda3/envs/doc/lib/python3.10/site-packages/gradio_client/client.py", line 1141, in _gather_files
    if self.input_component_types[i].value_is_file:
IndexError: list index out of range

System Info

This is gradio==4.19.1
MacBook Pro M1

Severity

Blocking usage of gradio

juanluisrto avatar Feb 19 '24 19:02 juanluisrto