nbroad HF staff commited on
Commit
cc7b5e4
1 Parent(s): b0f78b6

fix colors

Browse files

If you filter the ELO, the colors will switch between open and proprietary. I think this is due to invalid color map and the filtered df switching which license comes first.

It looks like the actual labels need to include LLM: https://huggingface.co/spaces/andrewrreed/closed-vs-open-arena-elo/blob/b0f78b68f80d00bf413405d6533be89d36f88ca6/utils.py#L194

With this, the colors for open should always be the same no matter how filtered.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -157,7 +157,7 @@ def filter_df(min_score, max_models_per_month, set_selector, org_selector):
157
  def build_plot(toggle_annotations, filtered_df):
158
 
159
  # construct plot
160
- custom_colors = {"Open": "#ff7f0e", "Proprietary": "#1f77b4"}
161
  fig = px.scatter(
162
  filtered_df,
163
  x="Release Date",
 
157
  def build_plot(toggle_annotations, filtered_df):
158
 
159
  # construct plot
160
+ custom_colors = {"Open LLM": "#ff7f0e", "Proprietary LLM": "#1f77b4"}
161
  fig = px.scatter(
162
  filtered_df,
163
  x="Release Date",