gr.Interface.load not working
Hi, I am trying to load TADNE in my space usingiface = gr.Interface.load(“spaces/hysts/TADNE”)but I get the following error:Traceback (most recent call last):File “/home/user/.local/lib/python3.8/site-packages/gradio/routes.py”, line 275, in predictoutput = await app.blocks.process_api(body, username, session_state)File “/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py”, line 274, in process_apipredictions = await run_in_threadpool(block_fn.fn, *processed_input)File “/home/user/.local/lib/python3.8/site-packages/starlette/concurrency.py”, line 41, in run_in_threadpoolreturn await anyio.to_thread.run_sync(func, *args)File “/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py”, line 31, in run_syncreturn await get_asynclib().run_sync_in_worker_thread(File “/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 937, in run_sync_in_worker_threadreturn await futureFile “/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 867, in runresult = context.run(func, *args)File “app.py”, line 15, in desc_to_imageiface = gr.Interface.load(“spaces/hysts/TADNE”)File “/home/user/.local/lib/python3.8/site-packages/gradio/interface.py”, line 90, in loadinterface_info = load_interface(name, src, api_key, alias)File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 273, in load_interfaceinterface_info = repos[src](name, api_key, alias)File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 319, in get_spaces_interfaceinterface_info = interface_params_from_config(config)File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 281, in interface_params_from_configfor component in config_dict[“input_components”]KeyError: ‘input_components’
2022-06-18T16:26:13Z
Hey there! I think the related space is using an older version of Gradio which did not support theloadmechanism. Pinging@abidlabsfor confirmation.
2022-06-18T16:33:35Z
Actually Discard that, this Space is using a recent version of gradio. I opened an issue in the Gradio repositoryLoading interface from Space does not work (sometimes) · Issue #1604 · gradio-app/gradio · GitHub
2023-09-05T22:18:56Z
The following worked in my space:import gradio as gr
gr.Interface.load("models/tensor-diffusion/melaura-v1-0").launch()huggingface.coMelaura V1 0 - a Hugging Face Space by tensor-diffusionDiscover amazing ML apps made by the community