Automation_Threads_EU / make_private.py
FincH12's picture
Deploy Dynamic Dashboard, Analytics and Prompts Editor
fd40f81 verified
Raw History Blame Contribute Delete
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}")