ycy commited on
Commit
4f9a873
·
2 Parent(s): d7c2978 1d829e9

Merge branch 'main' of hf.co:spaces/yan111222/CapArena_Auto_1

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. src/leaderboard/read_evals.py +1 -0
app.py CHANGED
@@ -64,6 +64,7 @@ LEADERBOARD_DF = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS,
64
  ) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
65
 
66
 
 
67
  def init_leaderboard(dataframe):
68
  if dataframe is None or dataframe.empty:
69
  raise ValueError("Leaderboard DataFrame is empty or None.")
@@ -83,6 +84,9 @@ def init_leaderboard(dataframe):
83
 
84
 
85
 
 
 
 
86
  demo = gr.Blocks(css=custom_css)
87
  with demo:
88
  gr.HTML(TITLE)
 
64
  ) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
65
 
66
 
67
+
68
  def init_leaderboard(dataframe):
69
  if dataframe is None or dataframe.empty:
70
  raise ValueError("Leaderboard DataFrame is empty or None.")
 
84
 
85
 
86
 
87
+
88
+
89
+
90
  demo = gr.Blocks(css=custom_css)
91
  with demo:
92
  gr.HTML(TITLE)
src/leaderboard/read_evals.py CHANGED
@@ -75,6 +75,7 @@ class EvalResult:
75
  still_on_hub = is_open,
76
  )
77
 
 
78
  def update_with_request_file(self, requests_path):
79
  """Finds the relevant request file for the current model and updates info with it"""
80
  request_file = get_request_file_for_model(requests_path, self.full_model, self.precision.value.name)
 
75
  still_on_hub = is_open,
76
  )
77
 
78
+
79
  def update_with_request_file(self, requests_path):
80
  """Finds the relevant request file for the current model and updates info with it"""
81
  request_file = get_request_file_for_model(requests_path, self.full_model, self.precision.value.name)