sasha HF staff commited on
Commit
13ef1b6
β€’
1 Parent(s): e5599c2

maybe simpler

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def get_plots(task_data):
10
  task_df = task_df.sort_values(by=['Total GPU Energy (Wh)'])
11
  task_df['energy_star'] = pd.cut(task_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
12
  fig = px.scatter(task_df, x="model", y='Total GPU Energy (Wh)', height= 500, width= 800, color = 'energy_star', color_discrete_map={"⭐": 'red', "⭐⭐": "yellow", "⭐⭐⭐": "green"})
13
- fig.update_traces(mode="markers+lines", hovertemplate=None)
14
  fig.update_layout(hovermode="y")
15
  return fig
16
 
 
10
  task_df = task_df.sort_values(by=['Total GPU Energy (Wh)'])
11
  task_df['energy_star'] = pd.cut(task_df['Total GPU Energy (Wh)'], 3, labels=["⭐⭐⭐", "⭐⭐", "⭐"])
12
  fig = px.scatter(task_df, x="model", y='Total GPU Energy (Wh)', height= 500, width= 800, color = 'energy_star', color_discrete_map={"⭐": 'red', "⭐⭐": "yellow", "⭐⭐⭐": "green"})
13
+ #fig.update_traces(mode="markers+lines", hovertemplate=None)
14
  fig.update_layout(hovermode="y")
15
  return fig
16