File size: 452 Bytes
a15535e
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from huggingface_hub import HfApi

api = HfApi()
for repo in ["akhiilll/forgeenv", "akhiilll/forgeenv-demo"]:
    info = api.repo_info(repo_id=repo, repo_type="space")
    rt = getattr(info, "runtime", None)
    stage = getattr(rt, "stage", "unknown") if rt else "unknown"
    hardware = getattr(rt, "hardware", "unknown") if rt else "unknown"
    sdk = getattr(info, "sdk", "unknown")
    print(f"{repo}: sdk={sdk} stage={stage} hardware={hardware}")