hysts HF staff commited on
Commit
2e5629e
1 Parent(s): 6557d36
Files changed (1) hide show
  1. app.py +3 -3
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="Task_Category",
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="Task_Category",
324
- hover_data=["Model", "n-shot", "Task_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>",
 
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>",