forgeenv-source / scripts /_check_space_status.py
akhiilll's picture
forgeenv source snapshot for training job
a15535e verified
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}")