Jae-Won Chung commited on
Commit
fe0d167
1 Parent(s): 827162e

Aesthetics

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -281,15 +281,16 @@ with block:
281
  with gr.Tabs():
282
  # Tab 1: Leaderboard.
283
  with gr.TabItem("Leaderboard"):
 
284
  with gr.Row():
285
  with gr.Box():
286
- gr.Markdown("## Select benchmark results to show")
287
  checkboxes = []
288
  for key, choices in global_tbm.schema.items():
289
  # Specifying `value` makes everything checked by default.
290
  checkboxes.append(gr.CheckboxGroup(choices=choices, value=choices[:1], label=key))
291
 
292
- # Block 1: Leaderboard table.
293
  with gr.Row():
294
  dataframe = gr.Dataframe(type="pandas", elem_id="tab-leaderboard")
295
  # Make sure the models have clickable links.
@@ -298,7 +299,7 @@ with block:
298
  for checkbox in checkboxes:
299
  checkbox.change(TableManager.set_filter_get_df, inputs=[tbm, *checkboxes], outputs=dataframe)
300
 
301
- # Block 2: Allow users to add new columns.
302
  with gr.Row():
303
  with gr.Column(scale=3):
304
  with gr.Row():
@@ -332,7 +333,7 @@ with block:
332
  outputs=[colname_input, formula_input, add_col_message],
333
  )
334
 
335
- # Block 3: Allow users to plot 2D and 3D scatter plots.
336
  with gr.Row():
337
  with gr.Column(scale=3):
338
  with gr.Row():
@@ -380,7 +381,7 @@ with block:
380
  outputs=[*axis_dropdowns, plot, plot_width_input, plot_height_input, plot_message],
381
  )
382
 
383
- # Block 4: Leaderboard date.
384
  with gr.Row():
385
  gr.HTML(f"<h3 style='color: gray'>Date: {latest_date}</h3>")
386
 
 
281
  with gr.Tabs():
282
  # Tab 1: Leaderboard.
283
  with gr.TabItem("Leaderboard"):
284
+ # Block 1: Checkboxes to select benchmarking parameters.
285
  with gr.Row():
286
  with gr.Box():
287
+ gr.Markdown("### Benchmark results to show")
288
  checkboxes = []
289
  for key, choices in global_tbm.schema.items():
290
  # Specifying `value` makes everything checked by default.
291
  checkboxes.append(gr.CheckboxGroup(choices=choices, value=choices[:1], label=key))
292
 
293
+ # Block 2: Leaderboard table.
294
  with gr.Row():
295
  dataframe = gr.Dataframe(type="pandas", elem_id="tab-leaderboard")
296
  # Make sure the models have clickable links.
 
299
  for checkbox in checkboxes:
300
  checkbox.change(TableManager.set_filter_get_df, inputs=[tbm, *checkboxes], outputs=dataframe)
301
 
302
+ # Block 3: Allow users to add new columns.
303
  with gr.Row():
304
  with gr.Column(scale=3):
305
  with gr.Row():
 
333
  outputs=[colname_input, formula_input, add_col_message],
334
  )
335
 
336
+ # Block 4: Allow users to plot 2D and 3D scatter plots.
337
  with gr.Row():
338
  with gr.Column(scale=3):
339
  with gr.Row():
 
381
  outputs=[*axis_dropdowns, plot, plot_width_input, plot_height_input, plot_message],
382
  )
383
 
384
+ # Block 5: Leaderboard date.
385
  with gr.Row():
386
  gr.HTML(f"<h3 style='color: gray'>Date: {latest_date}</h3>")
387