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