bgamazay commited on
Commit
9046801
·
verified ·
1 Parent(s): 024b980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def main():
99
  continue
100
 
101
  # Split the "model" column into 'provider' (before the "/") and 'model' (after the "/")
102
- df[['provider', 'model']] = df['model'].str.split('/', 1, expand=True)
103
  # Round total_gpu_energy to 3 decimal places and assign to 'energy'
104
  df['energy'] = df['total_gpu_energy'].round(3)
105
  # Use the energy_score column as 'score'
 
99
  continue
100
 
101
  # Split the "model" column into 'provider' (before the "/") and 'model' (after the "/")
102
+ df[['provider', 'model']] = df['model'].str.split(pat='/', n=1, expand=True)
103
  # Round total_gpu_energy to 3 decimal places and assign to 'energy'
104
  df['energy'] = df['total_gpu_energy'].round(3)
105
  # Use the energy_score column as 'score'