GraphShieldMistral / scripts /create_space.py
AXONVERTEX-AI-RESEARCH's picture
Publish GraphShieldMistral interactive explorer (part 5)
f8cab22 verified
Raw
History Blame Contribute Delete
355 Bytes
#!/usr/bin/env python3
from huggingface_hub import HfApi
import os
repo_id = os.environ.get(
"SPACE_REPO",
"AXONVERTEX-AI-RESEARCH/GraphShieldMistral",
)
api = HfApi()
url = api.create_repo(
repo_id=repo_id,
repo_type="space",
space_sdk="static",
private=False,
exist_ok=True,
)
print(f"PASS: Space repository ready: {url}")