Spaces:
Running
Running
Refactor init_leaderboard function to update data outputs to dataframe and improve dropdown UI
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def init_leaderboard(dataframes):
|
|
96 |
|
97 |
with gr.Row():
|
98 |
datatype = [c.type for c in fields(AutoEvalColumn)]
|
99 |
-
df = gr.Dataframe(data, datatype=datatype, type="pandas"
|
100 |
|
101 |
def refresh(subset):
|
102 |
global LEADERBOARD_DF
|
|
|
96 |
|
97 |
with gr.Row():
|
98 |
datatype = [c.type for c in fields(AutoEvalColumn)]
|
99 |
+
df = gr.Dataframe(data, datatype=datatype, type="pandas")
|
100 |
|
101 |
def refresh(subset):
|
102 |
global LEADERBOARD_DF
|