bishmoy commited on
Commit
50d66f5
Β·
verified Β·
1 Parent(s): 2290cee

building initial leaderboard

Browse files
Files changed (1) hide show
  1. app.py +22 -2
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  from utils import *
3
  import os
 
4
 
5
  def build_demo():
6
 
@@ -57,11 +58,30 @@ def build_demo():
57
  )
58
 
59
  with gr.Tab("Leaderboard", id=1):
60
- gr.Markdown("# πŸ† Leaderboard work in progress ! πŸ†")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  return demo
62
 
63
  if __name__ == "__main__":
64
 
65
- # elo_results_file, leaderboard_table_file = load_elo_results(elo_results_dir)
66
  demo = build_demo()
67
  demo.queue(max_size=20).launch(server_name="0.0.0.0")
 
1
  import gradio as gr
2
  from utils import *
3
  import os
4
+ from leaderboard import build_leaderboard
5
 
6
  def build_demo():
7
 
 
58
  )
59
 
60
  with gr.Tab("Leaderboard", id=1):
61
+ gr.Markdown("# πŸ† Leaderboard πŸ†")
62
+ gr.Dataframe(
63
+ headers=[
64
+ "⏱️ Duration",
65
+ "πŸ—³οΈ Votes",
66
+ "πŸ“Š Accuracy",
67
+
68
+ "Organization",
69
+ "License",
70
+ ],
71
+ datatype=[
72
+ "str",
73
+ "number",
74
+ "number",
75
+ ],
76
+ value=build_leaderboard().values,
77
+ height=700,
78
+ column_widths=[50, 200, 100, 100, 100, 150, 150],
79
+ wrap=True,
80
+ )
81
+
82
  return demo
83
 
84
  if __name__ == "__main__":
85
 
 
86
  demo = build_demo()
87
  demo.queue(max_size=20).launch(server_name="0.0.0.0")