Spaces:
Runtime error
Runtime error
leaderboard row value update
Browse files- leaderboard.py +3 -3
leaderboard.py
CHANGED
|
@@ -40,11 +40,11 @@ def get_scores(df):
|
|
| 40 |
|
| 41 |
if c == 'Overall':
|
| 42 |
mask = df.label == 0
|
| 43 |
-
elif c == 'Under
|
| 44 |
mask = (df.label == 0) & (df.duration < 26)
|
| 45 |
-
elif c == '
|
| 46 |
mask = (df.label == 0) & (df.duration >= 26) & (df.duration < 56)
|
| 47 |
-
elif c == '
|
| 48 |
mask = (df.label == 0) & (df.duration >= 56) & (df.duration < 126)
|
| 49 |
else:
|
| 50 |
raise ValueError
|
|
|
|
| 40 |
|
| 41 |
if c == 'Overall':
|
| 42 |
mask = df.label == 0
|
| 43 |
+
elif c == 'Under 26 s':
|
| 44 |
mask = (df.label == 0) & (df.duration < 26)
|
| 45 |
+
elif c == '55 s':
|
| 46 |
mask = (df.label == 0) & (df.duration >= 26) & (df.duration < 56)
|
| 47 |
+
elif c == '125 s':
|
| 48 |
mask = (df.label == 0) & (df.duration >= 56) & (df.duration < 126)
|
| 49 |
else:
|
| 50 |
raise ValueError
|