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}")