Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def build_basic_stats_tab():
|
|
152 |
md4 = gr.Markdown(empty)
|
153 |
return [md0, plot_1, md1, md2, md3, md4]
|
154 |
|
155 |
-
def get_full_table(model_table_df):
|
156 |
values = []
|
157 |
for i in range(len(model_table_df)):
|
158 |
row = []
|
@@ -204,7 +204,7 @@ def build_leaderboard_tab(results_file, leaderboard_table_file, show_plot=False)
|
|
204 |
model_table_df = pd.DataFrame(data)
|
205 |
|
206 |
with gr.Tabs() as tabs:
|
207 |
-
arena_table_vals = get_full_table(model_table_df)
|
208 |
with gr.Tab("Full leaderboard", id=0):
|
209 |
md = make_arena_leaderboard_md(arena_df)
|
210 |
leaderboard_markdown = gr.Markdown(md, elem_id="leaderboard_markdown")
|
|
|
152 |
md4 = gr.Markdown(empty)
|
153 |
return [md0, plot_1, md1, md2, md3, md4]
|
154 |
|
155 |
+
def get_full_table(arena_df, model_table_df):
|
156 |
values = []
|
157 |
for i in range(len(model_table_df)):
|
158 |
row = []
|
|
|
204 |
model_table_df = pd.DataFrame(data)
|
205 |
|
206 |
with gr.Tabs() as tabs:
|
207 |
+
arena_table_vals = get_full_table(arena_df, model_table_df)
|
208 |
with gr.Tab("Full leaderboard", id=0):
|
209 |
md = make_arena_leaderboard_md(arena_df)
|
210 |
leaderboard_markdown = gr.Markdown(md, elem_id="leaderboard_markdown")
|