01Yassine commited on
Commit
30ed201
·
verified ·
1 Parent(s): fcbeda1

Update leaderboard.py

Browse files
Files changed (1) hide show
  1. leaderboard.py +2 -2
leaderboard.py CHANGED
@@ -28,8 +28,8 @@ def render_info_html():
28
  # HTML formatted info text
29
  return gr.Markdown(info_text)
30
 
31
- def highlight_min(s, props=''):
32
- return np.where(s == np.nanmin(s.values), props, '')
33
 
34
  def render_leader_board(leaderboard_df):
35
 
 
28
  # HTML formatted info text
29
  return gr.Markdown(info_text)
30
 
31
+ def highlight_max(s, props=''):
32
+ return np.where(s == np.nanmax(s.values), props, '')
33
 
34
  def render_leader_board(leaderboard_df):
35