Spaces:
Sleeping
Sleeping
fix: ping self too so pinger stays awake
Browse files
app.py
CHANGED
|
@@ -41,9 +41,6 @@ def get_spaces():
|
|
| 41 |
urls = []
|
| 42 |
for s in spaces:
|
| 43 |
space_id = s.id
|
| 44 |
-
# Skip self to avoid circular pinging
|
| 45 |
-
if space_id == f"{OWNER}/space-pinger":
|
| 46 |
-
continue
|
| 47 |
# Convert to URL: owner/space-name -> https://owner-space-name.hf.space
|
| 48 |
slug = space_id.replace("/", "-").replace("_", "-").lower()
|
| 49 |
url = f"https://{slug}.hf.space"
|
|
|
|
| 41 |
urls = []
|
| 42 |
for s in spaces:
|
| 43 |
space_id = s.id
|
|
|
|
|
|
|
|
|
|
| 44 |
# Convert to URL: owner/space-name -> https://owner-space-name.hf.space
|
| 45 |
slug = space_id.replace("/", "-").replace("_", "-").lower()
|
| 46 |
url = f"https://{slug}.hf.space"
|