mgyigit commited on
Commit
0af996e
·
verified ·
1 Parent(s): a3b281e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -112,6 +112,8 @@ def update_leaderboard(selected_methods, selected_metrics):
112
  .apply(highlight_top5, axis=0) # green shades
113
  .format(precision=4) # keep tidy numbers
114
  )
 
 
115
  return styler
116
 
117
 
@@ -249,7 +251,6 @@ with block:
249
 
250
  baseline_value = get_baseline_df(method_names, metric_names)
251
  baseline_value = baseline_value.applymap(lambda x: round(x, 4) if isinstance(x, (int, float)) else x)
252
- #baseline_value['Method'] = baseline_value['Method'].apply(format_method)
253
  baseline_header = ["Method"] + metric_names
254
  baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
255
 
@@ -260,6 +261,7 @@ with block:
260
  .apply(highlight_top5, axis=0) # green shades
261
  .format(precision=4) # keep tidy numbers
262
  )
 
263
 
264
  with gr.Row(show_progress=True, variant='panel'):
265
  data_component = gr.Dataframe(
 
112
  .apply(highlight_top5, axis=0) # green shades
113
  .format(precision=4) # keep tidy numbers
114
  )
115
+ styler['Method'] = styler['Method'].apply(format_method)
116
+
117
  return styler
118
 
119
 
 
251
 
252
  baseline_value = get_baseline_df(method_names, metric_names)
253
  baseline_value = baseline_value.applymap(lambda x: round(x, 4) if isinstance(x, (int, float)) else x)
 
254
  baseline_header = ["Method"] + metric_names
255
  baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
256
 
 
261
  .apply(highlight_top5, axis=0) # green shades
262
  .format(precision=4) # keep tidy numbers
263
  )
264
+ styler['Method'] = styler['Method'].apply(format_method)
265
 
266
  with gr.Row(show_progress=True, variant='panel'):
267
  data_component = gr.Dataframe(