rwightman HF staff commited on
Commit
5b13af9
·
verified ·
1 Parent(s): fcec301

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -120,7 +120,7 @@ def create_scatter_plot(df, x_axis, y_axis):
120
  trendline='ols',
121
  trendline_options=dict(log_x=True, log_y=True),
122
  color='highlighted',
123
- color_discrete_map={True: 'red', False: 'blue'},
124
  title=f'{y_axis} vs {x_axis}'
125
  )
126
  fig.update_layout(showlegend=False)
@@ -161,7 +161,7 @@ def update_leaderboard_and_plot(
161
  combined_df = filtered_df
162
 
163
  fig = create_scatter_plot(combined_df, x_axis, y_axis)
164
- highlighted_df = combined_df.style.apply(lambda x: ['background-color: #ffcccc' if x['highlighted'] else '' for _ in x], axis=1)
165
 
166
  return highlighted_df, fig
167
 
 
120
  trendline='ols',
121
  trendline_options=dict(log_x=True, log_y=True),
122
  color='highlighted',
123
+ color_discrete_map={True: 'orange', False: 'blue'},
124
  title=f'{y_axis} vs {x_axis}'
125
  )
126
  fig.update_layout(showlegend=False)
 
161
  combined_df = filtered_df
162
 
163
  fig = create_scatter_plot(combined_df, x_axis, y_axis)
164
+ highlighted_df = combined_df.style.apply(lambda x: ['background-color: #FFA500' if x['highlighted'] else '' for _ in x], axis=1)
165
 
166
  return highlighted_df, fig
167