Spaces:
Paused
Paused
| """ | |
| 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) | |