mgyigit commited on
Commit
37c0c8d
1 Parent(s): c1d2ab2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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