# Gr.load doesn't work with Blocks app

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgr-load-doesnt-work-with-blocks-app%2F41927%3E%5C
**Category:** Spaces\
**Created:** [June 3, 2023, 1:51am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgr-load-doesnt-work-with-blocks-app%2F41927 "2023-06-03T01:51:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobyzhu](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jobyzhu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjobyzhu)%5C
**Post date:** [June 3, 2023, 1:51am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgr-load-doesnt-work-with-blocks-app%2F41927%2F1 "2023-06-03T01:51:53Z")

</div>

Hi there, I used gr.load method to load a Interface gradio app successfully.  
However, when I use gr.load to load a Blocks gradio app, it returned “runntime error” as below. I am sure the Blocks gradio app run well. What’s wrong with it?

Traceback (most recent call last):  
File “/home/user/app/app.py”, line 6, in   
demo = gr.load(“jobyzhu/aichatbot”, src=“spaces”,hf\_token=os.environ.get(“HF\_TOKEN”))  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 68, in load  
return load\_blocks\_from\_repo(  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 107, in load\_blocks\_from\_repo  
blocks: gradio.Blocks = factory\_methods[src](name, api\_key, alias, \*\*kwargs)  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 486, in from\_spaces  
return from\_spaces\_blocks(space=space\_name, api\_key=api\_key)  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 490, in from\_spaces\_blocks  
client = Client(space, hf\_token=api\_key)  
File “/home/user/.local/lib/python3.10/site-packages/gradio\_client/client.py”, line 123, in **init**  
for fn\_index, dependency in enumerate(self.config[“dependencies”])  
KeyError: ‘dependencies’
