maybe simpler
Browse files
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 |
|