Spaces:
Running
Running
XufengDuan
commited on
Commit
•
508b863
1
Parent(s):
253f5bb
update scripts
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def init_space():
|
|
42 |
return original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df
|
43 |
|
44 |
original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = init_space()
|
45 |
-
|
46 |
|
47 |
def process_pending_evals():
|
48 |
if len(pending_eval_queue_df) == 0:
|
@@ -209,7 +209,7 @@ with demo:
|
|
209 |
)
|
210 |
|
211 |
leaderboard_table = gr.components.Dataframe(
|
212 |
-
value=
|
213 |
[c.name for c in utils.fields(utils.AutoEvalColumn) if c.never_hidden]
|
214 |
+ shown_columns.value
|
215 |
+ [utils.AutoEvalColumn.dummy.name]
|
@@ -384,7 +384,7 @@ process_pending_evals()
|
|
384 |
# raw_data, original_df = populate.get_leaderboard_df(envs.RESULTS_REPO, envs.QUEUE_REPO, utils.COLS, utils.BENCHMARK_COLS)
|
385 |
|
386 |
|
387 |
-
|
388 |
|
389 |
(
|
390 |
finished_eval_queue_df,
|
|
|
42 |
return original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df
|
43 |
|
44 |
original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = init_space()
|
45 |
+
leaderboard_df = original_df.copy()
|
46 |
|
47 |
def process_pending_evals():
|
48 |
if len(pending_eval_queue_df) == 0:
|
|
|
209 |
)
|
210 |
|
211 |
leaderboard_table = gr.components.Dataframe(
|
212 |
+
value=leaderboard_df[
|
213 |
[c.name for c in utils.fields(utils.AutoEvalColumn) if c.never_hidden]
|
214 |
+ shown_columns.value
|
215 |
+ [utils.AutoEvalColumn.dummy.name]
|
|
|
384 |
# raw_data, original_df = populate.get_leaderboard_df(envs.RESULTS_REPO, envs.QUEUE_REPO, utils.COLS, utils.BENCHMARK_COLS)
|
385 |
|
386 |
|
387 |
+
|
388 |
|
389 |
(
|
390 |
finished_eval_queue_df,
|