Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update
Browse files
app.py
CHANGED
@@ -312,7 +312,7 @@ def plot_size_vs_score(df_filtered: pd.DataFrame) -> go.Figure:
|
|
312 |
df,
|
313 |
id_vars=["Model", "model_name_without_org_name", "#Params (B)", "n-shot"],
|
314 |
value_vars=AVG_COLUMNS,
|
315 |
-
var_name="
|
316 |
value_name="Score",
|
317 |
)
|
318 |
fig = px.scatter(
|
@@ -320,8 +320,8 @@ def plot_size_vs_score(df_filtered: pd.DataFrame) -> go.Figure:
|
|
320 |
x="#Params (B)",
|
321 |
y="Score",
|
322 |
text="model_name_without_org_name",
|
323 |
-
color="
|
324 |
-
hover_data=["Model", "n-shot", "
|
325 |
)
|
326 |
fig.update_traces(
|
327 |
hovertemplate="<b>%{customdata[0]}</b><br>#Params: %{x:.2f}B<br>n-shot: %{customdata[1]}<br>%{customdata[2]}: %{y:.4f}<extra></extra>",
|
|
|
312 |
df,
|
313 |
id_vars=["Model", "model_name_without_org_name", "#Params (B)", "n-shot"],
|
314 |
value_vars=AVG_COLUMNS,
|
315 |
+
var_name="Category",
|
316 |
value_name="Score",
|
317 |
)
|
318 |
fig = px.scatter(
|
|
|
320 |
x="#Params (B)",
|
321 |
y="Score",
|
322 |
text="model_name_without_org_name",
|
323 |
+
color="Category",
|
324 |
+
hover_data=["Model", "n-shot", "Category"],
|
325 |
)
|
326 |
fig.update_traces(
|
327 |
hovertemplate="<b>%{customdata[0]}</b><br>#Params: %{x:.2f}B<br>n-shot: %{customdata[1]}<br>%{customdata[2]}: %{y:.4f}<extra></extra>",
|