ftshijt commited on
Commit
015dcbc
1 Parent(s): ebc64f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -193,7 +193,7 @@ with demo:
193
  print(leaderboard_df['Sample Rate'])
194
  print(leaderboard_df['Sample Rate'][0])
195
  print(type(leaderboard_df['Sample Rate'][0]))
196
- leaderboard_df = leaderboard_df[leaderboard_df['Sample Rate'].apply(lambda x: x[0] < 32001 if isinstance(x, list) and len(x) > 0 else False)]
197
  leaderboard_df["LowSR-Rank"] = leaderboard_df['LowSR-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])
198
 
199
  leaderboard_table = gr.components.Dataframe(
 
193
  print(leaderboard_df['Sample Rate'])
194
  print(leaderboard_df['Sample Rate'][0])
195
  print(type(leaderboard_df['Sample Rate'][0]))
196
+ leaderboard_df = leaderboard_df[leaderboard_df['Sample Rate'].apply(lambda x: x[0] < 32001 if isinstance(x, numpy.ndarray) and len(x) > 0 else False)]
197
  leaderboard_df["LowSR-Rank"] = leaderboard_df['LowSR-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])
198
 
199
  leaderboard_table = gr.components.Dataframe(