File size: 416 Bytes
9963647 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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}")
|