AIencoder commited on
Commit
1eeabc4
·
verified ·
1 Parent(s): 7a59134

fix: ping self too so pinger stays awake

Browse files
Files changed (1) hide show
  1. app.py +0 -3
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"