Automation_Threads_EU / create_space.py
FincH12's picture
Initial commit from local
9963647 verified
Raw History Blame Contribute Delete
416 Bytes
import os
from huggingface_hub import HfApi
api = HfApi()
new_space_id = "FincH12/Automation_Threads_EU"
print(f"Creating Space {new_space_id}...")
try:
api.create_repo(
repo_id=new_space_id,
repo_type="space",
space_sdk="docker",
private=False
)
print("Space created successfully.")
except Exception as e:
print(f"Failed to create space (maybe it exists?): {e}")