Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix colors
Browse filesIf 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.
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",
|