# Sharing private space through gr.load

**URL:** <https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334>\
**Category:** Spaces\
**Created:** [July 10, 2023, 8:58pm UTC](https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334 "2023-07-10T20:58:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdizriel](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abdizriel/32/17491_2.png) [@Abdizriel](https://discuss.huggingface.co/u/Abdizriel)\
**Post date:** [July 10, 2023, 8:58pm UTC](https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334/1 "2023-07-10T20:58:05Z")

</div>

Hello,

I have a private space with the code I do not want to share and I am trying to share it via creating public space and load it via gradio like described here: [Share app url without sharing the files and version - #12 by radames](https://discuss.huggingface.co/t/share-app-url-without-sharing-the-files-and-version/26182/12)

My code is as simple as this:

```auto
import gradio as gr
import os

hf_token = os.environ['GRADIO_API_KEY']

iface = gr.load(name="<org>/<name>", hf_token=hf_token, src="spaces")
iface.queue(api_open=False).launch(show_api=False)

```

And it “works” but the app is empty, while the same private space looks normal. What might be wrong there?

---

<div class="post-metadata">

**Author:** ![Abdizriel](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abdizriel/32/17491_2.png) [@Abdizriel](https://discuss.huggingface.co/u/Abdizriel)\
**Post date:** [July 11, 2023, 7:00pm UTC](https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334/2 "2023-07-11T19:00:17Z")

</div>

Here is the space I’m talking about: [PPAIA Public - a Hugging Face Space by hiPets](https://huggingface.co/spaces/hiPets/PPAIA-public)

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [July 11, 2023, 9:21pm UTC](https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334/3 "2023-07-11T21:21:42Z")

</div>

hi @Abdizriel

Thanks for sharing the public Space, can you please confirm both Gradio versions are the same ?

> **[README.md · hiPets/PPAIA-public at main](https://huggingface.co/spaces/hiPets/PPAIA-public/blob/main/README.md?code=true#L7)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

And do you see any other error message on your logs?

---

<div class="post-metadata">

**Author:** ![Abdizriel](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abdizriel/32/17491_2.png) [@Abdizriel](https://discuss.huggingface.co/u/Abdizriel)\
**Post date:** [July 12, 2023, 7:24am UTC](https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334/4 "2023-07-12T07:24:03Z")

</div>

Hi @radames

I’ve checked and even make sure to have it on same SDK - It’s 3.36.1 for both private & public space.

I don’t see any errors other than a warning on public like this:

```auto
Fetching Space from: https://huggingface.co/spaces/hiPets/PPAIA
Loaded as API: https://hipets-ppaia.hf.space ✔
/home/user/app/app.py:6: GradioUnusedKwargWarning: You have unused kwarg parameters in Chatbot, please remove them: {'selectable': False}
  iface = gr.load(name="hiPets/PPAIA", hf_ *****=hf_***** , src="spaces")
Running on local URL: http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.

```

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [July 13, 2023, 2:58pm UTC](https://discuss.huggingface.co/t/sharing-private-space-through-gr-load/46334/5 "2023-07-13T14:58:30Z")

</div>

Hi @Abdizriel !

The components are on the page but for some reason they are all invisible. I think it’s a bug in gradio but I can’t reproduce it with other demos so I think it’s something about the private space layout. It will be hard to debug without knowing what the private space looks like. Could you share the layout code of the private space but mock out all the function implementations?

Thank you
