Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def load_leaderboard_table_csv(filename, add_hyperlink=False):
|
|
46 |
for h, v in zip(heads, row):
|
47 |
if h == "Validation Score":
|
48 |
if v != "-":
|
49 |
-
v =
|
50 |
else:
|
51 |
v = np.nan
|
52 |
item[h] = v
|
@@ -96,9 +96,6 @@ def build_leaderboard_tab(leaderboard_table_file, show_plot=False):
|
|
96 |
with gr.Tab("Full leaderboard", id=0):
|
97 |
md = make_arena_leaderboard_md(model_table_df)
|
98 |
leaderboard_markdown = gr.Markdown(md, elem_id="leaderboard_markdown")
|
99 |
-
with gr.Row():
|
100 |
-
with gr.Column(scale=2):
|
101 |
-
category_dropdown = gr.Dropdown(choices=["Overall"], label="Category", value="Overall")
|
102 |
|
103 |
display_df = gr.Dataframe(
|
104 |
headers=[
|
|
|
46 |
for h, v in zip(heads, row):
|
47 |
if h == "Validation Score":
|
48 |
if v != "-":
|
49 |
+
v = ast.literal_eval(v)
|
50 |
else:
|
51 |
v = np.nan
|
52 |
item[h] = v
|
|
|
96 |
with gr.Tab("Full leaderboard", id=0):
|
97 |
md = make_arena_leaderboard_md(model_table_df)
|
98 |
leaderboard_markdown = gr.Markdown(md, elem_id="leaderboard_markdown")
|
|
|
|
|
|
|
99 |
|
100 |
display_df = gr.Dataframe(
|
101 |
headers=[
|