Spaces:
Running
Running
Update app.py
Browse files
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 "
|
102 |
-
df[['provider', 'model']] = df['
|
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'
|