Spaces:
Paused
Paused
Download check_space_status.py from Kraft102/widgetdc-cortex: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/Kraft102/widgetdc-cortex/resolve/main/check_space_status.py
- Command line
-
hf download hf://spaces/Kraft102/widgetdc-cortex/check_space_status.py
-
curl -L -o check_space_status.py https://huggingface.co/spaces/Kraft102/widgetdc-cortex/resolve/main/check_space_status.py
1.15 kB
| """ | |
| Check Hugging Face Space build status and logs | |
| """ | |
| from huggingface_hub import HfApi | |
| import time | |
| api = HfApi() | |
| REPO_ID = "Kraft102/widgetdc-cortex" | |
| print("=" * 70) | |
| print(" CHECKING SPACE BUILD STATUS") | |
| print("=" * 70) | |
| print() | |
| try: | |
| # Get space runtime info | |
| runtime = api.get_space_runtime(repo_id=REPO_ID) | |
| print(f"📊 Space: {REPO_ID}") | |
| print(f" Stage: {runtime.stage}") | |
| print(f" Hardware: {runtime.hardware}") | |
| print(f" Storage: {runtime.storage}") | |
| if hasattr(runtime, 'error_message') and runtime.error_message: | |
| print(f"\n❌ ERROR:") | |
| print(f" {runtime.error_message}") | |
| print() | |
| print("🌐 Space URL: https://huggingface.co/spaces/Kraft102/widgetdc-cortex") | |
| print("📋 Logs: https://huggingface.co/spaces/Kraft102/widgetdc-cortex/logs") | |
| except Exception as e: | |
| print(f"⚠️ Could not fetch runtime info: {e}") | |
| print() | |
| print("Try manually:") | |
| print("1. Visit: https://huggingface.co/spaces/Kraft102/widgetdc-cortex") | |
| print("2. Check logs tab for build errors") | |
| print("3. Verify environment variables are set") | |
| print() | |
| print("=" * 70) | |