hysts HF staff commited on
Commit
54674a9
1 Parent(s): 8f302de
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -290,7 +290,7 @@ with gr.Blocks() as demo_leaderboard:
290
  # initial_columns = [c.name for c in fields(AutoEvalColumn) if c.never_hidden or c.displayed_by_default]
291
  # leaderboard_df_filtered = select_columns(leaderboard_df_filtered, initial_columns)
292
 
293
- # leaderboard_table = gr.components.Dataframe(
294
  # value=leaderboard_df_filtered,
295
  # headers=[c.name for c in fields(AutoEvalColumn) if c.never_hidden] + shown_columns.value,
296
  # datatype=TYPES,
@@ -314,7 +314,7 @@ with gr.Blocks() as demo_leaderboard:
314
  leaderboard_df_filtered[col] = leaderboard_df_filtered[col].astype(str)
315
 
316
  # DataFrameコンポーネントの初期化
317
- leaderboard_table = gr.components.Dataframe(
318
  value=leaderboard_df_filtered,
319
  headers=initial_columns,
320
  datatype=TYPES,
@@ -324,7 +324,7 @@ with gr.Blocks() as demo_leaderboard:
324
  )
325
 
326
  # Dummy leaderboard for handling the case when the user uses backspace key
327
- hidden_leaderboard_table_for_search = gr.components.Dataframe(
328
  value=original_df[COLS],
329
  headers=COLS,
330
  datatype=TYPES,
@@ -403,7 +403,7 @@ with gr.Blocks() as demo_submission:
403
  open=False,
404
  ):
405
  with gr.Row():
406
- finished_eval_table = gr.components.Dataframe(
407
  value=finished_eval_queue_df,
408
  headers=EVAL_COLS,
409
  datatype=EVAL_TYPES,
@@ -414,7 +414,7 @@ with gr.Blocks() as demo_submission:
414
  open=False,
415
  ):
416
  with gr.Row():
417
- running_eval_table = gr.components.Dataframe(
418
  value=running_eval_queue_df,
419
  headers=EVAL_COLS,
420
  datatype=EVAL_TYPES,
@@ -426,7 +426,7 @@ with gr.Blocks() as demo_submission:
426
  open=False,
427
  ):
428
  with gr.Row():
429
- pending_eval_table = gr.components.Dataframe(
430
  value=pending_eval_queue_df,
431
  headers=EVAL_COLS,
432
  datatype=EVAL_TYPES,
@@ -437,7 +437,7 @@ with gr.Blocks() as demo_submission:
437
  open=False,
438
  ):
439
  with gr.Row():
440
- failed_eval_table = gr.components.Dataframe(
441
  value=failed_eval_queue_df,
442
  headers=EVAL_COLS,
443
  datatype=EVAL_TYPES,
 
290
  # initial_columns = [c.name for c in fields(AutoEvalColumn) if c.never_hidden or c.displayed_by_default]
291
  # leaderboard_df_filtered = select_columns(leaderboard_df_filtered, initial_columns)
292
 
293
+ # leaderboard_table = gr.Dataframe(
294
  # value=leaderboard_df_filtered,
295
  # headers=[c.name for c in fields(AutoEvalColumn) if c.never_hidden] + shown_columns.value,
296
  # datatype=TYPES,
 
314
  leaderboard_df_filtered[col] = leaderboard_df_filtered[col].astype(str)
315
 
316
  # DataFrameコンポーネントの初期化
317
+ leaderboard_table = gr.Dataframe(
318
  value=leaderboard_df_filtered,
319
  headers=initial_columns,
320
  datatype=TYPES,
 
324
  )
325
 
326
  # Dummy leaderboard for handling the case when the user uses backspace key
327
+ hidden_leaderboard_table_for_search = gr.Dataframe(
328
  value=original_df[COLS],
329
  headers=COLS,
330
  datatype=TYPES,
 
403
  open=False,
404
  ):
405
  with gr.Row():
406
+ finished_eval_table = gr.Dataframe(
407
  value=finished_eval_queue_df,
408
  headers=EVAL_COLS,
409
  datatype=EVAL_TYPES,
 
414
  open=False,
415
  ):
416
  with gr.Row():
417
+ running_eval_table = gr.Dataframe(
418
  value=running_eval_queue_df,
419
  headers=EVAL_COLS,
420
  datatype=EVAL_TYPES,
 
426
  open=False,
427
  ):
428
  with gr.Row():
429
+ pending_eval_table = gr.Dataframe(
430
  value=pending_eval_queue_df,
431
  headers=EVAL_COLS,
432
  datatype=EVAL_TYPES,
 
437
  open=False,
438
  ):
439
  with gr.Row():
440
+ failed_eval_table = gr.Dataframe(
441
  value=failed_eval_queue_df,
442
  headers=EVAL_COLS,
443
  datatype=EVAL_TYPES,