# Can I create a confidential app using Spaces?

**URL:** <https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258>\
**Category:** Spaces\
**Created:** [December 30, 2021, 8:57pm UTC](https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258 "2021-12-30T20:57:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaffson](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/olaffson/32/2416_2.png) [@olaffson](https://discuss.huggingface.co/u/olaffson)\
**Post date:** [December 30, 2021, 8:57pm UTC](https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258/1 "2021-12-30T20:57:44Z")

</div>

Hello there!

I am intrigued by `spaces` but I am wondering if I can create an app that is only accessible to me (and not to Huggingface’s staff for instance) and to others with a password. Is this level of privacy possible?

Thanks!

---

<div class="post-metadata">

**Author:** ![satpalsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/satpalsr/32/3553_2.png) [@satpalsr](https://discuss.huggingface.co/u/satpalsr)\
**Post date:** [December 31, 2021, 11:33am UTC](https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258/2 "2021-12-31T11:33:39Z")

</div>

You can create a private space. Private spaces are visible to only you (personal space) or members of your organization (organization space) as per HF.

Maybe they are visible to HF staff too, I am not sure about it.

If you don’t want to create space on HF, you can do it on [gradio.app](https://gradio.app/) or [streamlit.io](https://streamlit.io/)

---

<div class="post-metadata">

**Author:** ![olaffson](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/olaffson/32/2416_2.png) [@olaffson](https://discuss.huggingface.co/u/olaffson)\
**Post date:** [December 31, 2021, 8:54pm UTC](https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258/3 "2021-12-31T20:54:33Z")

</div>

thanks @satpalsr . is there a way to add a password to the app?

---

<div class="post-metadata">

**Author:** ![satpalsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/satpalsr/32/3553_2.png) [@satpalsr](https://discuss.huggingface.co/u/satpalsr)\
**Post date:** [January 2, 2022, 3:40am UTC](https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258/4 "2022-01-02T03:40:48Z")

</div>

Hey @olaffson, Check this video: [8. Gradio App Sharing with Login Authentication Page | Gradio ML UI Beginners Course - YouTube](https://www.youtube.com/watch?v=Qie-H1BqgUE)

---

<div class="post-metadata">

**Author:** ![arbabarshad](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@arbabarshad](https://discuss.huggingface.co/u/arbabarshad)\
**Post date:** [April 27, 2024, 10:57pm UTC](https://discuss.huggingface.co/t/can-i-create-a-confidential-app-using-spaces/13258/5 "2024-04-27T22:57:59Z")

</div>

```auto
import os
import gradio as gr
read_key = os.environ.get('HF_TOKEN', None)
import gradio as gr
demo = gr.load("username/spacename", hf_token=read_key, src="spaces")
demo.launch()

```

Dont forget to define the HF\_TOKEN in tokens section of settings
