MrRayZer commited on
Commit
d4beace
·
verified ·
1 Parent(s): 41ed91b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. keep_alive.py +1 -1
keep_alive.py CHANGED
@@ -15,7 +15,7 @@ def ping_self():
15
 
16
  while True:
17
  try:
18
- url = f"{SPACE_URL.rstrip('/')}/health"
19
  logger.info(f"[KeepAlive] Pinging self at {url}")
20
  response = requests.get(url, timeout=10)
21
  if response.status_code == 200:
 
15
 
16
  while True:
17
  try:
18
+ url = "http://localhost:7860/health"
19
  logger.info(f"[KeepAlive] Pinging self at {url}")
20
  response = requests.get(url, timeout=10)
21
  if response.status_code == 200: