Weyaxi commited on
Commit
95b7c61
1 Parent(s): b787f43

restart every 12 hours instead of 1 hours

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ BOT_HF_TOKEN = os.getenv('BOT_HF_TOKEN')
18
  api = HfApi()
19
  fs = HfFileSystem()
20
 
21
- def refresh(how_much=3600): # default to 1 hour
22
  time.sleep(how_much)
23
  try:
24
  api.restart_space(repo_id="Weyaxi/leaderboard-results-to-modelcard")
 
18
  api = HfApi()
19
  fs = HfFileSystem()
20
 
21
+ def refresh(how_much=43200): # default to 12 hour
22
  time.sleep(how_much)
23
  try:
24
  api.restart_space(repo_id="Weyaxi/leaderboard-results-to-modelcard")