Spaces:
Sleeping
Sleeping
adding rating
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ def get_model_names(task_data):
|
|
36 |
all_df['model'] = all_df['model'].apply(make_link)
|
37 |
all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
|
38 |
all_df['Total GPU Energy (Wh)'] = all_df['Total GPU Energy (Wh)'].round(2)
|
39 |
-
|
|
|
40 |
return model_names
|
41 |
|
42 |
def format_params(num):
|
|
|
36 |
all_df['model'] = all_df['model'].apply(make_link)
|
37 |
all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
|
38 |
all_df['Total GPU Energy (Wh)'] = all_df['Total GPU Energy (Wh)'].round(2)
|
39 |
+
all_df['Rating'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
|
40 |
+
model_names = all_df[['model','parameters','Rating', 'Total GPU Energy (Wh)']]
|
41 |
return model_names
|
42 |
|
43 |
def format_params(num):
|