Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ fs = HfFileSystem()
|
|
21 |
def refresh(how_much=3600): # default to 1 hour
|
22 |
time.sleep(how_much)
|
23 |
try:
|
24 |
-
api.restart_space(repo_id="
|
25 |
except Exception as e:
|
26 |
print(f"Error while scraping leaderboard, trying again... {e}")
|
27 |
refresh(600) # 10 minutes if any error happens
|
|
|
21 |
def refresh(how_much=3600): # default to 1 hour
|
22 |
time.sleep(how_much)
|
23 |
try:
|
24 |
+
api.restart_space(repo_id="Aarifkhan/leaderboard-results-to-modelcard")
|
25 |
except Exception as e:
|
26 |
print(f"Error while scraping leaderboard, trying again... {e}")
|
27 |
refresh(600) # 10 minutes if any error happens
|