Geek7 commited on
Commit
e858738
·
verified ·
1 Parent(s): 043eabb

Update wk.py

Browse files
Files changed (1) hide show
  1. wk.py +2 -2
wk.py CHANGED
@@ -1,7 +1,7 @@
1
  from apscheduler.schedulers.blocking import BlockingScheduler
2
  import requests
3
 
4
- url = "https://geek7-flk.hf.space/" # Your Hugging Face Space URL
5
 
6
  scheduler = BlockingScheduler()
7
 
@@ -12,7 +12,7 @@ def ping():
12
  except Exception as e:
13
  print(f"Error pinging {url}: {e}")
14
 
15
- # Schedule the ping function to run every 5 minutes
16
  scheduler.add_job(ping, 'interval', minutes=5)
17
 
18
  try:
 
1
  from apscheduler.schedulers.blocking import BlockingScheduler
2
  import requests
3
 
4
+ url = "https://geek7-flk.hf.space/"
5
 
6
  scheduler = BlockingScheduler()
7
 
 
12
  except Exception as e:
13
  print(f"Error pinging {url}: {e}")
14
 
15
+
16
  scheduler.add_job(ping, 'interval', minutes=5)
17
 
18
  try: