# Connecting hf spaces to gradio

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnecting-hf-spaces-to-gradio%2F49948%3E%5C
**Category:** 🔒 Gradio\
**Created:** [August 8, 2023, 10:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnecting-hf-spaces-to-gradio%2F49948 "2023-08-08T10:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvsubz](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@arvsubz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Farvsubz)%5C
**Post date:** [August 8, 2023, 10:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnecting-hf-spaces-to-gradio%2F49948%2F1 "2023-08-08T10:42:40Z")

</div>

Hi, I’m trying to load a private repo on hf spaces on gradio, following the discussion [here](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-spaces-with-auth-for-public-models-counter-intuitive%2F32868%2F2)%3A

Would be grateful for any suggestions (i do have access token in secrets).  
Here’s the error I get:  
Runtime error  
Fetching Space from: https:// [huggingface.co/spaces/arvsubz/ladywriter](http://huggingface.co/spaces/arvsubz/ladywriter)  
Traceback (most recent call last):  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 473, in from\_spaces  
config = json.loads(result.group(1)) # type: ignore  
AttributeError: ‘NoneType’ object has no attribute ‘group’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):  
File “/home/user/app/app.py”, line 11, in   
demo = gr.load(“arvsubz/ladywriter”,  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 70, in load  
return load\_blocks\_from\_repo(  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 109, in load\_blocks\_from\_repo  
blocks: gradio.Blocks = factory\_methods[src](name, hf\_\*\*\*\*\*, alias, \*\*kwargs)  
File “/home/user/.local/lib/python3.10/site-packages/gradio/external.py”, line 475, in from\_spaces  
raise ValueError(f"Could not load the Space: {space\_name}") from ae  
ValueError: Could not load the Space: arvsubz/ladywriter

---

<div class="post-metadata">

**Author:** ![arvsubz](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@arvsubz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Farvsubz)%5C
**Post date:** [August 8, 2023, 10:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconnecting-hf-spaces-to-gradio%2F49948%2F2 "2023-08-08T10:43:13Z")

</div>

I’ve done some digging and quite a few folks seem to have experienced [something similar](https://github.com/facebookresearch/llama/issues/399).  
or on the following spaces: magic-diffusion-generator, maxim-spaces
