gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
29.07k stars 2.15k forks source link

[Custom Components] support custom components in gr.load #8124

Closed Col0ring closed 2 days ago

Col0ring commented 1 week ago

Is your feature request related to a problem? Please describe.
I have a space with custom components, but gr.load is not working properly.

Describe the solution you'd like
Support custom components in gr.load.

Additional context
Add any other context or screenshots about the feature request here.

File "/Users/coloring/anaconda3/envs/gradio_4/lib/python3.12/site-packages/gradio/utils.py", line 525, in component_or_layout_class
    raise ValueError(f"No such component or layout: {cls_name}")
ValueError: No such component or layout: i18neditor

This error is caused by gradio.utils.component_or_layout_class, maybe gradio should expose some context or parameters of this method.

abidlabs commented 1 week ago

Makes sense — could you link to the Space you are trying to load or provide us a quick repro?

Col0ring commented 1 week ago

Makes sense — could you link to the Space you are trying to load or provide us a quick repro?

Reproduce repo: https://huggingface.co/spaces/Coloring/gradio_load_test