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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,8 +98,8 @@ def main():
98
  st.sidebar.error(f"Error reading '{file_name}' for task {task}: {e}")
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'
 
98
  st.sidebar.error(f"Error reading '{file_name}' for task {task}: {e}")
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'