DontPlanToEnd commited on
Commit
69ee30b
Β·
verified Β·
1 Parent(s): 7be4602

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -63,7 +63,7 @@ custom_css = """
63
  """
64
 
65
  # Define the columns for the different leaderboards
66
- UGI_COLS = ['#P', 'Model', 'UGI πŸ†', 'W/10 πŸ‘', 'I/10 πŸ’‘', 'Unruly', 'Internet', 'Stats', 'Writing', 'PolContro']
67
  WRITING_STYLE_COLS = ['#P', 'Model', 'Reg+MyScore πŸ†', 'Reg+Int πŸ†', 'MyScore πŸ†', 'ASSS⬇️', 'SMOG⬆️', 'Yule⬇️']
68
  ANIME_RATING_COLS = ['#P', 'Model', 'Score πŸ†', 'Dif', 'Cor', 'Std']
69
  ADDITIONAL_COLS = ['Release Date', 'Date Added', 'Active Params', 'Total Params']
@@ -101,8 +101,8 @@ def load_leaderboard_data(csv_file_path):
101
  # Round the W/10 column to 1 decimal place and I/10 to 2 decimal places
102
  if 'W/10 πŸ‘' in df.columns:
103
  df['W/10 πŸ‘'] = df['W/10 πŸ‘'].round(1)
104
- if 'I/10 πŸ’‘' in df.columns:
105
- df['I/10 πŸ’‘'] = df['I/10 πŸ’‘'].round(2)
106
 
107
  return df
108
  except Exception as e:
 
63
  """
64
 
65
  # Define the columns for the different leaderboards
66
+ UGI_COLS = ['#P', 'Model', 'UGI πŸ†', 'W/10 πŸ‘', 'I/10 πŸ“š', 'Unruly', 'Internet', 'Stats', 'Writing', 'PolContro']
67
  WRITING_STYLE_COLS = ['#P', 'Model', 'Reg+MyScore πŸ†', 'Reg+Int πŸ†', 'MyScore πŸ†', 'ASSS⬇️', 'SMOG⬆️', 'Yule⬇️']
68
  ANIME_RATING_COLS = ['#P', 'Model', 'Score πŸ†', 'Dif', 'Cor', 'Std']
69
  ADDITIONAL_COLS = ['Release Date', 'Date Added', 'Active Params', 'Total Params']
 
101
  # Round the W/10 column to 1 decimal place and I/10 to 2 decimal places
102
  if 'W/10 πŸ‘' in df.columns:
103
  df['W/10 πŸ‘'] = df['W/10 πŸ‘'].round(1)
104
+ if 'I/10 πŸ“š' in df.columns:
105
+ df['I/10 πŸ“š'] = df['I/10 πŸ“š'].round(2)
106
 
107
  return df
108
  except Exception as e: