IgorSlinko commited on
Commit
efb25e7
·
1 Parent(s): f81e3b1

Remove Token Type x-axis labels, adjust chart margins (v0.3.40)

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -1232,10 +1232,10 @@ def create_cost_by_type_chart(df: pd.DataFrame, input_price: float, cache_read_p
1232
  color_discrete_sequence=["#EF553B", "#19D3F3", "#FFA15A", "#AB63FA"],
1233
  )
1234
  fig.update_layout(
1235
- xaxis_title="Token Type",
1236
  yaxis_title="Cost ($)",
1237
  showlegend=False,
1238
- margin=dict(l=40, r=20, t=40, b=40),
1239
  )
1240
 
1241
  total_cost = cost_uncached_input + cost_cache_read + cost_cache_creation + cost_completion
@@ -1274,10 +1274,10 @@ def create_token_charts(df: pd.DataFrame, input_price: float, cache_read_price:
1274
  color_discrete_sequence=["#EF553B", "#19D3F3", "#FFA15A", "#AB63FA"],
1275
  )
1276
  fig_tokens.update_layout(
1277
- xaxis_title="Token Type",
1278
  yaxis_title="Tokens (M)",
1279
  showlegend=False,
1280
- margin=dict(l=40, r=20, t=40, b=40),
1281
  )
1282
  total_all = total_uncached_input + total_cache_read + total_cache_creation + total_completion
1283
  fig_tokens.add_annotation(
@@ -1387,10 +1387,10 @@ def create_basic_histograms(df: pd.DataFrame, input_price: float, cache_read_pri
1387
  color_discrete_sequence=["#EF553B", "#19D3F3", "#FFA15A", "#AB63FA"],
1388
  )
1389
  fig_tokens.update_layout(
1390
- xaxis_title="Token Type",
1391
  yaxis_title="Tokens (M)",
1392
  showlegend=False,
1393
- margin=dict(l=40, r=20, t=40, b=40),
1394
  )
1395
 
1396
  total_all = total_uncached_input + total_cache_read + total_cache_creation + total_completion
@@ -1839,7 +1839,7 @@ def build_app():
1839
  """)
1840
  trajectories_state = gr.State(None)
1841
 
1842
- gr.Markdown("# 🧮 SWE-bench Bash-Only Leaderboard `v0.3.39`")
1843
  gr.Markdown("## 🎯 Select a base model for cost analysis (click a row)")
1844
 
1845
  with gr.Row():
 
1232
  color_discrete_sequence=["#EF553B", "#19D3F3", "#FFA15A", "#AB63FA"],
1233
  )
1234
  fig.update_layout(
1235
+ xaxis_title="",
1236
  yaxis_title="Cost ($)",
1237
  showlegend=False,
1238
+ margin=dict(l=60, r=20, t=20, b=40),
1239
  )
1240
 
1241
  total_cost = cost_uncached_input + cost_cache_read + cost_cache_creation + cost_completion
 
1274
  color_discrete_sequence=["#EF553B", "#19D3F3", "#FFA15A", "#AB63FA"],
1275
  )
1276
  fig_tokens.update_layout(
1277
+ xaxis_title="",
1278
  yaxis_title="Tokens (M)",
1279
  showlegend=False,
1280
+ margin=dict(l=60, r=20, t=20, b=40),
1281
  )
1282
  total_all = total_uncached_input + total_cache_read + total_cache_creation + total_completion
1283
  fig_tokens.add_annotation(
 
1387
  color_discrete_sequence=["#EF553B", "#19D3F3", "#FFA15A", "#AB63FA"],
1388
  )
1389
  fig_tokens.update_layout(
1390
+ xaxis_title="",
1391
  yaxis_title="Tokens (M)",
1392
  showlegend=False,
1393
+ margin=dict(l=60, r=20, t=20, b=40),
1394
  )
1395
 
1396
  total_all = total_uncached_input + total_cache_read + total_cache_creation + total_completion
 
1839
  """)
1840
  trajectories_state = gr.State(None)
1841
 
1842
+ gr.Markdown("# 🧮 SWE-bench Bash-Only Leaderboard `v0.3.40`")
1843
  gr.Markdown("## 🎯 Select a base model for cost analysis (click a row)")
1844
 
1845
  with gr.Row():