Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Format
Browse files
app.py
CHANGED
@@ -269,14 +269,26 @@ def make_figure(df):
|
|
269 |
|
270 |
|
271 |
# Update layout
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
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(
|