Update app.py
Browse files
app.py
CHANGED
@@ -189,10 +189,12 @@ with demo:
|
|
189 |
# interactive=True,
|
190 |
# elem_id="filter-columns-size",
|
191 |
# )
|
192 |
-
|
193 |
-
print(
|
|
|
|
|
194 |
leaderboard_df["HighSR-Rank"] = leaderboard_df['HighSR-Rank'].astype(str).apply(lambda x: 'NA' if x[1:-1] == '-1' else f'{int(x[1:-1]):02d}' if x[1:-1].isdigit() else x[1:-1])
|
195 |
-
|
196 |
leaderboard_table = gr.components.Dataframe(
|
197 |
value=leaderboard_df[
|
198 |
[c.name for c in fields(AutoEvalColumn) if c.never_hidden]
|
|
|
189 |
# interactive=True,
|
190 |
# elem_id="filter-columns-size",
|
191 |
# )
|
192 |
+
print(leaderboard_df['Sample Rate'])
|
193 |
+
print(leaderboard_df['Sample Rate'][0])
|
194 |
+
print(type(leaderboard_df['Sample Rate'][0]))
|
195 |
+
leaderboard_df = leaderboard_df[leaderboard_df['Sample Rate'].apply(lambda x: x[0] > 32000 if isinstance(x, numpy.ndarray) and len(x) > 0 else False)]
|
196 |
leaderboard_df["HighSR-Rank"] = leaderboard_df['HighSR-Rank'].astype(str).apply(lambda x: 'NA' if x[1:-1] == '-1' else f'{int(x[1:-1]):02d}' if x[1:-1].isdigit() else x[1:-1])
|
197 |
+
|
198 |
leaderboard_table = gr.components.Dataframe(
|
199 |
value=leaderboard_df[
|
200 |
[c.name for c in fields(AutoEvalColumn) if c.never_hidden]
|