File size: 1,153 Bytes
fbb1eb0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""
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)