Spaces:
Running
Running
Refactor init_leaderboard function to handle multiple subsets, improve column selection and hiding, and include Dataset Version in filter_columns
Browse files
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 |
-
|
79 |
-
|
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(
|