Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,14 @@ def add_new_eval(
|
|
42 |
return 0
|
43 |
|
44 |
def refresh_data():
|
45 |
-
benchmark_types = ["similarity", "function", "family", "affinity"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
download_from_hub(benchmark_types)
|
47 |
|
48 |
# Define a function to update metrics based on benchmark type selection
|
|
|
42 |
return 0
|
43 |
|
44 |
def refresh_data():
|
45 |
+
benchmark_types = ["similarity", "function", "family", "affinity", "leaderboard"]
|
46 |
+
|
47 |
+
for benchmark_type in benchmark_types:
|
48 |
+
path = f"/tmp/{benchmark_type}_results.csv"
|
49 |
+
if os.path.exists(path):
|
50 |
+
os.remove(path)
|
51 |
+
|
52 |
+
benchmark_types.remove("leaderboard")
|
53 |
download_from_hub(benchmark_types)
|
54 |
|
55 |
# Define a function to update metrics based on benchmark type selection
|