Connecting hf spaces to gradio

Hi, I’m trying to load a private repo on hf spaces on gradio, following the discussion here:

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://
Traceback (most recent call last):
File “/home/user/.local/lib/python3.10/site-packages/gradio/”, line 473, in from_spaces
config = json.loads( # 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/”, line 11, in
demo = gr.load(“arvsubz/ladywriter”,
File “/home/user/.local/lib/python3.10/site-packages/gradio/”, line 70, in load
return load_blocks_from_repo(
File “/home/user/.local/lib/python3.10/site-packages/gradio/”, 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/”, 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

I’ve done some digging and quite a few folks seem to have experienced something similar.
or on the following spaces: magic-diffusion-generator, maxim-spaces