abdullahawan1/dictionary-attack-detector
0
1import urllib.request2import json3 4try:5 url = "https://huggingface.co/api/spaces/abdullahawan1/dictionary-attack-detector"6 req = urllib.request.Request(url)7 with urllib.request.urlopen(req) as response:8 data = json.loads(response.read().decode())9 print(f"Space Status: {data.get('runtime', {}).get('stage')}")10 print(f"Error: {data.get('runtime', {}).get('error')}")11except Exception as e:12 print(f"Error checking space: {e}")13 