sasha HF staff commited on
Commit
5136650
·
1 Parent(s): 0bcbe4f
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,7 +61,7 @@ def get_model_names(task):
61
  all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
62
  all_df['Total GPU Energy (Wh)'] = all_df['Total GPU Energy (Wh)'].round(2)
63
  all_df['Rating'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
64
- model_names= model_names.sort_values('Total GPU Energy (Wh)')
65
  model_names = all_df[['Model','Rating','Total GPU Energy (Wh)', 'Parameters']]
66
  return model_names
67
 
@@ -80,7 +80,7 @@ def get_all_model_names():
80
  all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
81
  all_df['Total GPU Energy (Wh)'] = all_df['Total GPU Energy (Wh)'].round(2)
82
  all_df['Rating'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
83
- model_names= model_names.sort_values('Total GPU Energy (Wh)')
84
  model_names = all_df[['Model','Rating','Total GPU Energy (Wh)', 'Parameters']]
85
  return model_names
86
 
@@ -181,7 +181,7 @@ with demo:
181
  plot = gr.Plot(get_all_plots)
182
  with gr.Column():
183
  table = gr.Dataframe(get_all_model_names)
184
-
185
  with gr.Accordion("Methodology", open = False):
186
  gr.Markdown(
187
  """For each of the ten tasks above, we created a custom dataset with 1,000 entries (see all of the datasets on our [org Hub page](https://huggingface.co/EnergyStarAI)).
 
61
  all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
62
  all_df['Total GPU Energy (Wh)'] = all_df['Total GPU Energy (Wh)'].round(2)
63
  all_df['Rating'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
64
+ all_df= all_df.sort_values('Total GPU Energy (Wh)')
65
  model_names = all_df[['Model','Rating','Total GPU Energy (Wh)', 'Parameters']]
66
  return model_names
67
 
 
80
  all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
81
  all_df['Total GPU Energy (Wh)'] = all_df['Total GPU Energy (Wh)'].round(2)
82
  all_df['Rating'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
83
+ all_df= all_df.sort_values('Total GPU Energy (Wh)')
84
  model_names = all_df[['Model','Rating','Total GPU Energy (Wh)', 'Parameters']]
85
  return model_names
86
 
 
181
  plot = gr.Plot(get_all_plots)
182
  with gr.Column():
183
  table = gr.Dataframe(get_all_model_names)
184
+
185
  with gr.Accordion("Methodology", open = False):
186
  gr.Markdown(
187
  """For each of the ten tasks above, we created a custom dataset with 1,000 entries (see all of the datasets on our [org Hub page](https://huggingface.co/EnergyStarAI)).