sasha HF staff commited on
Commit
3dc1445
β€’
1 Parent(s): c8a8187

changing color

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ def get_plots(task):
18
  all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
19
  all_df['parameters'] = all_df['parameters'].apply(format_params)
20
  all_df['energy_star'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
21
- fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"⭐": 'red', "⭐⭐": "yellow", "⭐⭐⭐": "green"})
22
  fig.update_traces(
23
  hovertemplate="<br>".join([
24
  "Total Energy: %{y}",
@@ -39,7 +39,7 @@ def get_all_plots():
39
  all_df = pd.concat([all_df, tasks_df])
40
  all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
41
  all_df['parameters'] = all_df['parameters'].apply(format_params)
42
- fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"⭐": 'red', "⭐⭐": "yellow", "⭐⭐⭐": "green"})
43
  fig.update_traces(
44
  hovertemplate="<br>".join([
45
  "Total Energy: %{y}",
 
18
  all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
19
  all_df['parameters'] = all_df['parameters'].apply(format_params)
20
  all_df['energy_star'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
21
+ fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"⭐": 'red', "⭐⭐": "orange", "⭐⭐⭐": "green"})
22
  fig.update_traces(
23
  hovertemplate="<br>".join([
24
  "Total Energy: %{y}",
 
39
  all_df = pd.concat([all_df, tasks_df])
40
  all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
41
  all_df['parameters'] = all_df['parameters'].apply(format_params)
42
+ fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"⭐": 'red', "⭐⭐": "orange", "⭐⭐⭐": "green"})
43
  fig.update_traces(
44
  hovertemplate="<br>".join([
45
  "Total Energy: %{y}",