黄济民 commited on
Commit
8752ce9
1 Parent(s): bd8528a

feature: add auto evaluation tab

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -72,20 +72,22 @@ def create_leaderboard_table(df, headers, types):
72
  )
73
 
74
  def launch_gradio():
75
- with gr.Interface(
76
- layout="tab",
77
- inputs=None,
 
78
  outputs=None,
79
  title=TITLE,
80
  description=INTRODUCTION_TEXT,
81
  tabs=["Self-hosted evaluation", "Automatic evaluation"],
82
- ) as iface:
83
- with iface.tab("Self-hosted evaluation"):
84
- create_leaderboard_table(leaderboard_df, COLS, TYPES)
 
 
 
 
85
 
86
- with iface.tab("Automatic evaluation"):
87
- create_leaderboard_table(leaderboard_auto_df, COLS_AUTO, TYPES_AUTO)
88
-
89
  iface.launch()
90
 
91
  scheduler = BackgroundScheduler()
 
72
  )
73
 
74
  def launch_gradio():
75
+ iface = gr.Interface(
76
+ fn=dummy_fn,
77
+ layout="tab",
78
+ inputs=None,
79
  outputs=None,
80
  title=TITLE,
81
  description=INTRODUCTION_TEXT,
82
  tabs=["Self-hosted evaluation", "Automatic evaluation"],
83
+ )
84
+
85
+ with iface.tab("Self-hosted evaluation"):
86
+ create_leaderboard_table(leaderboard_df, COLS, TYPES)
87
+
88
+ with iface.tab("Automatic evaluation"):
89
+ create_leaderboard_table(leaderboard_auto_df, COLS_AUTO, TYPES_AUTO)
90
 
 
 
 
91
  iface.launch()
92
 
93
  scheduler = BackgroundScheduler()