pufanyi commited on
Commit
e491c93
1 Parent(s): e2ddc04

Refactor init_leaderboard function to handle multiple subsets, improve column selection and hiding, and include Dataset Version in filter_columns

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -74,9 +74,9 @@ def init_leaderboard(dataframes, subsets):
74
  with gr.Row():
75
  selected_subset = gr.Dropdown(choices=subsets, label="Select Dataset Subset", value=subsets[-1])
76
 
77
- with gr.Row():
78
- datatype = [c.type for c in fields(AutoEvalColumn)]
79
- dataframe = gr.Dataframe(dataframes, datatype=datatype, type="pandas")
80
 
81
 
82
  return Leaderboard(
 
74
  with gr.Row():
75
  selected_subset = gr.Dropdown(choices=subsets, label="Select Dataset Subset", value=subsets[-1])
76
 
77
+ # with gr.Row():
78
+ # datatype = [c.type for c in fields(AutoEvalColumn)]
79
+ # dataframe = gr.Dataframe(dataframes, datatype=datatype, type="pandas")
80
 
81
 
82
  return Leaderboard(