# gr.Interface.load not working

**URL:** <https://discuss.huggingface.co/t/gr-interface-load-not-working/18500>\
**Category:** Spaces\
**Created:** [May 30, 2022, 12:53am UTC](https://discuss.huggingface.co/t/gr-interface-load-not-working/18500 "2022-05-30T00:53:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagolinc](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nagolinc/32/4885_2.png) [@nagolinc](https://discuss.huggingface.co/u/nagolinc)\
**Post date:** [May 30, 2022, 12:53am UTC](https://discuss.huggingface.co/t/gr-interface-load-not-working/18500/1 "2022-05-30T00:53:41Z")

</div>

Hi, I am trying to load TADNE in my space using

iface = 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 predict  
output = 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\_api  
predictions = 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\_threadpool  
return 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\_sync  
return 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\_thread  
return await future  
File “/home/user/.local/lib/python3.8/site-packages/anyio/\_backends/\_asyncio.py”, line 867, in run  
result = context.run(func, \*args)  
File “app.py”, line 15, in desc\_to\_image  
iface = gr.Interface.load(“spaces/hysts/TADNE”)  
File “/home/user/.local/lib/python3.8/site-packages/gradio/interface.py”, line 90, in load  
interface\_info = load\_interface(name, src, api\_key, alias)  
File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 273, in load\_interface  
interface\_info = repos[src](name, api\_key, alias)  
File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 319, in get\_spaces\_interface  
interface\_info = interface\_params\_from\_config(config)  
File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 281, in interface\_params\_from\_config  
for component in config\_dict[“input\_components”]  
KeyError: ‘input\_components’

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [June 18, 2022, 4:26pm UTC](https://discuss.huggingface.co/t/gr-interface-load-not-working/18500/2 "2022-06-18T16:26:13Z")

</div>

Hey there! I think the related space is using an older version of Gradio which did not support the `load` mechanism. Pinging @abidlabs for confirmation.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [June 18, 2022, 4:33pm UTC](https://discuss.huggingface.co/t/gr-interface-load-not-working/18500/3 "2022-06-18T16:33:35Z")

</div>

Actually Discard that, this Space is using a recent version of gradio. I opened an issue in the Gradio repository [Loading interface from Space does not work (sometimes) · Issue #1604 · gradio-app/gradio · GitHub](https://github.com/gradio-app/gradio/issues/1604)

---

<div class="post-metadata">

**Author:** ![DamarJati](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/damarjati/32/30406_2.png) [@DamarJati](https://discuss.huggingface.co/u/DamarJati)\
**Post date:** [September 5, 2023, 10:18pm UTC](https://discuss.huggingface.co/t/gr-interface-load-not-working/18500/4 "2023-09-05T22:18:56Z")

</div>

The following worked in my space:

```auto
import gradio as gr
gr.Interface.load("models/tensor-diffusion/melaura-v1-0").launch()

```

> **[Melaura V1 0 - a Hugging Face Space by tensor-diffusion](https://huggingface.co/spaces/tensor-diffusion/melaura-v1-0)**
>
> Discover amazing ML apps made by the community
