ftshijt commited on
Commit
72e7346
1 Parent(s): 42cf850

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -192,9 +192,9 @@ with demo:
192
 
193
  print(type(leaderboard_df[shown_columns.value]))
194
  print(leaderboard_df[shown_columns.value]["Rank"])
195
- leaderboard_df["Rank"] = leaderboard_df['Rank'].astype(str).apply(lambda x: 'NA' if x[0] == '-1' else f'{int(x[0]):03d}' if x[0].isdigit() else x[0])
196
- leaderboard_df["LowSR-Rank"] = leaderboard_df['LowSR-Rank'].astype(str).apply(lambda x: 'NA' if x[0] == '-1' else f'{int(x[0]):03d}' if x[0].isdigit() else x[0])
197
- leaderboard_df["HighSR-Rank"] = leaderboard_df['HighSR-Rank'].astype(str).apply(lambda x: 'NA' if x[0] == '-1' else f'{int(x[0]):03d}' if x[0].isdigit() else x[0])
198
 
199
  leaderboard_table = gr.components.Dataframe(
200
  value=leaderboard_df[
 
192
 
193
  print(type(leaderboard_df[shown_columns.value]))
194
  print(leaderboard_df[shown_columns.value]["Rank"])
195
+ leaderboard_df["Rank"] = leaderboard_df['Rank'].astype(str).apply(lambda x: 'NA' if x[1:-1] == '-1' else f'{int(x[1:-1]):03d}' if x[1:-1].isdigit() else x[1:-1])
196
+ 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]):03d}' if x[1:-1].isdigit() else x[1:-1])
197
+ 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]):03d}' if x[1:-1].isdigit() else x[1:-1])
198
 
199
  leaderboard_table = gr.components.Dataframe(
200
  value=leaderboard_df[