Spaces:
Running
Running
Update leaderboard.py
Browse files- 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
|
32 |
-
return np.where(s == np.
|
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 |
|