Download make_private.py from FincH12/Automation_Threads_EU: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/FincH12/Automation_Threads_EU/resolve/main/make_private.py
- Command line
-
hf download hf://spaces/FincH12/Automation_Threads_EU/make_private.py
-
curl -L -o make_private.py https://huggingface.co/spaces/FincH12/Automation_Threads_EU/resolve/main/make_private.py
282 Bytes
| import os | |
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| new_space_id = "FincH12/Automation_Threads_EU" | |
| try: | |
| api.update_repo_visibility(repo_id=new_space_id, repo_type="space", private=True) | |
| print("Space is now PRIVATE.") | |
| except Exception as e: | |
| print(f"Error: {e}") | |