Spaces:
Sleeping
Sleeping
Commit
·
e62cbdf
1
Parent(s):
12c49c4
Return early
Browse files- processing.py +1 -0
processing.py
CHANGED
@@ -45,6 +45,7 @@ def get_info(space_name: SpaceInfo) -> SpaceData | None:
|
|
45 |
status = space_info.runtime['stage']
|
46 |
if status not in ["SLEEPING", "RUNNING", "RUNNING_BUILDING", "BUILDING"]:
|
47 |
print(f"Space not running, building, or sleeping {space_info.id}")
|
|
|
48 |
elif status == "SLEEPING":
|
49 |
requests.get(f"https://huggingface.co/spaces/{space_info.id}")
|
50 |
|
|
|
45 |
status = space_info.runtime['stage']
|
46 |
if status not in ["SLEEPING", "RUNNING", "RUNNING_BUILDING", "BUILDING"]:
|
47 |
print(f"Space not running, building, or sleeping {space_info.id}")
|
48 |
+
return None
|
49 |
elif status == "SLEEPING":
|
50 |
requests.get(f"https://huggingface.co/spaces/{space_info.id}")
|
51 |
|