Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -148,6 +148,13 @@ def finalize_df(df):
|
|
148 |
df = df.applymap(lambda x: f"{x:.1f}" if isinstance(x, (int, float)) else x)
|
149 |
df.columns = headers_with_icons
|
150 |
df.sort_values(by="⭐ Overall", ascending=False, inplace=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
return df
|
152 |
|
153 |
|
@@ -436,7 +443,6 @@ def show_intersection_heatmap(evt: gr.SelectData):
|
|
436 |
|
437 |
with gr.Blocks() as demo:
|
438 |
gr.Markdown("# FSM Benchmark Leaderboard")
|
439 |
-
|
440 |
with gr.Tab("Text-only Benchmark"):
|
441 |
gr.Markdown("# Text-only Leaderboard (Judged by Qwen)")
|
442 |
leader_board = gr.Dataframe(accuracy_df_qwen, headers=headers_with_icons)
|
|
|
148 |
df = df.applymap(lambda x: f"{x:.1f}" if isinstance(x, (int, float)) else x)
|
149 |
df.columns = headers_with_icons
|
150 |
df.sort_values(by="⭐ Overall", ascending=False, inplace=True)
|
151 |
+
# add a new column with the order (index)
|
152 |
+
df["#"] = range(1, len(df) + 1)
|
153 |
+
# bring rank to the first column
|
154 |
+
cols = df.columns.tolist()
|
155 |
+
cols = cols[-1:] + cols[:-1]
|
156 |
+
df = df[cols]
|
157 |
+
|
158 |
return df
|
159 |
|
160 |
|
|
|
443 |
|
444 |
with gr.Blocks() as demo:
|
445 |
gr.Markdown("# FSM Benchmark Leaderboard")
|
|
|
446 |
with gr.Tab("Text-only Benchmark"):
|
447 |
gr.Markdown("# Text-only Leaderboard (Judged by Qwen)")
|
448 |
leader_board = gr.Dataframe(accuracy_df_qwen, headers=headers_with_icons)
|