m-ric HF staff commited on
Commit
79f07b1
Β·
1 Parent(s): 10ea153
Files changed (1) hide show
  1. app.py +20 -8
app.py CHANGED
@@ -269,14 +269,26 @@ def make_figure(df):
269
 
270
 
271
  # Update layout
272
- fig.update_layout(
273
- xaxis_title="Date",
274
- title="La course au classement",
275
- yaxis_title="Score ELO",
276
- legend_title="Classement en Novembre 2024",
277
- xaxis_range=[pd.Timestamp("2024-01-01"), current_date], # Extend x-axis for labels
278
- yaxis_range=[1103, 1350],
279
- )
 
 
 
 
 
 
 
 
 
 
 
 
280
  # apply_template(fig)
281
 
282
  fig.update_xaxes(
 
269
 
270
 
271
  # Update layout
272
+ speak_french = False
273
+ if speak_french:
274
+ fig.update_layout(
275
+ xaxis_title="Date",
276
+ title="La course au classement",
277
+ yaxis_title="Score ELO",
278
+ legend_title="Classement en Novembre 2024",
279
+ xaxis_range=[pd.Timestamp("2024-01-01"), current_date], # Extend x-axis for labels
280
+ yaxis_range=[1103, 1350],
281
+ )
282
+ else:
283
+ fig.update_layout(
284
+ xaxis_title="Date",
285
+ yaxis_title="ELO score on Chatbot Arena",
286
+ legend_title="Ranking as of November 2024",
287
+ title="The race for the best LLM",
288
+ hovermode="closest",
289
+ xaxis_range=[pd.Timestamp("2024-01-01"), current_date], # Extend x-axis for labels
290
+ yaxis_range=[1103, 1350],
291
+ )
292
  # apply_template(fig)
293
 
294
  fig.update_xaxes(