File size: 282 Bytes
fd40f81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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}")
|