Spaces:
Running
Running
refine
Browse files
app.py
CHANGED
|
@@ -383,8 +383,6 @@ def load_content_from_hf(repo_name="SWE-Arena/vote_metadata"):
|
|
| 383 |
|
| 384 |
|
| 385 |
def get_leaderboard_data(vote_entry=None, use_cache=True):
|
| 386 |
-
year = str(datetime.now().year)
|
| 387 |
-
|
| 388 |
# Try to load cached leaderboard first
|
| 389 |
if use_cache:
|
| 390 |
try:
|
|
@@ -410,7 +408,7 @@ def get_leaderboard_data(vote_entry=None, use_cache=True):
|
|
| 410 |
)
|
| 411 |
return leaderboard_data
|
| 412 |
except Exception as e:
|
| 413 |
-
print(f"No cached leaderboard found
|
| 414 |
|
| 415 |
# Load feedback data from the Hugging Face repository
|
| 416 |
vote_data = load_content_from_hf()
|
|
|
|
| 383 |
|
| 384 |
|
| 385 |
def get_leaderboard_data(vote_entry=None, use_cache=True):
|
|
|
|
|
|
|
| 386 |
# Try to load cached leaderboard first
|
| 387 |
if use_cache:
|
| 388 |
try:
|
|
|
|
| 408 |
)
|
| 409 |
return leaderboard_data
|
| 410 |
except Exception as e:
|
| 411 |
+
print(f"No cached leaderboard found, computing from votes...")
|
| 412 |
|
| 413 |
# Load feedback data from the Hugging Face repository
|
| 414 |
vote_data = load_content_from_hf()
|