Lisa Dunlap
commited on
Commit
·
e23f445
1
Parent(s):
ab3ed31
bug fix
Browse files
app.py
CHANGED
|
@@ -36,29 +36,13 @@ def build_demo(elo_results_file, leaderboard_table_file):
|
|
| 36 |
)
|
| 37 |
|
| 38 |
with gr.Blocks(
|
| 39 |
-
title="
|
| 40 |
theme=theme,
|
| 41 |
css=block_css,
|
| 42 |
) as demo:
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
leader_components = build_leaderboard_tab(
|
| 46 |
-
elo_results_file,
|
| 47 |
-
leaderboard_table_file,
|
| 48 |
-
show_plot=True,
|
| 49 |
-
mirror=True
|
| 50 |
-
)
|
| 51 |
-
|
| 52 |
-
with gr.Tab("Basic Stats", id=1):
|
| 53 |
-
basic_components = build_basic_stats_tab()
|
| 54 |
-
|
| 55 |
-
url_params = gr.JSON(visible=False)
|
| 56 |
-
demo.load(
|
| 57 |
-
load_demo,
|
| 58 |
-
[url_params],
|
| 59 |
-
basic_components + leader_components,
|
| 60 |
)
|
| 61 |
-
|
| 62 |
return demo
|
| 63 |
|
| 64 |
if __name__ == "__main__":
|
|
|
|
| 36 |
)
|
| 37 |
|
| 38 |
with gr.Blocks(
|
| 39 |
+
title="Chatbot Arena Leaderboard",
|
| 40 |
theme=theme,
|
| 41 |
css=block_css,
|
| 42 |
) as demo:
|
| 43 |
+
leader_components = build_leaderboard_tab(
|
| 44 |
+
elo_results_file, leaderboard_table_file, show_plot=True, mirror=True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
)
|
|
|
|
| 46 |
return demo
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|