How to make huggingface space become "IS_SHARED_UI"

#22
by Alon77777 - opened

I see there is a is_shared_ui flag in you code:
1670557894714.png
I duplicated your space to https://huggingface.co/spaces/BAAI/dreambooth-training, and I am confuse now how can I turn the is_share_ui back so somebody can duplicated space from https://huggingface.co/spaces/BAAI/dreambooth-training?

@Alon77777 You can set an environment variable IS_SHARED_UI in the "Repository secrets" section of the Settings tab in your Space. The code only checks if the environment variable exists, so the actual value doesn't matter.

You actually need to make sure you DON'T have IS_SHARED_UI defined in the secrets. The code checks for its existence, if it DOES NOT exist, then you can run it.

multimodalart changed discussion status to closed

Sign up or log in to comment