restart every 12 hours instead of 1 hours
Browse files
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=
|
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")
|