Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -295,9 +295,12 @@ def create_timeline_plot():
|
|
295 |
fig.update_layout(
|
296 |
height=500,
|
297 |
showlegend=True,
|
298 |
-
legend=dict(title="Model Type"
|
299 |
)
|
300 |
|
|
|
|
|
|
|
301 |
return fig
|
302 |
|
303 |
def get_domain_details(domain):
|
@@ -316,10 +319,11 @@ def get_domain_details(domain):
|
|
316 |
|
317 |
def format_leaderboard_table(df):
|
318 |
"""Format the leaderboard table for display"""
|
319 |
-
# Create
|
320 |
df_display = df.copy()
|
|
|
321 |
df_display['Paper'] = df_display['Paper'].apply(
|
322 |
-
lambda x:
|
323 |
)
|
324 |
return df_display
|
325 |
|
|
|
295 |
fig.update_layout(
|
296 |
height=500,
|
297 |
showlegend=True,
|
298 |
+
legend=dict(title="Model Type")
|
299 |
)
|
300 |
|
301 |
+
# Update trace names for better legend display
|
302 |
+
fig.for_each_trace(lambda t: t.update(name="Nexa Models" if t.name == "True" else "Other Models"))
|
303 |
+
|
304 |
return fig
|
305 |
|
306 |
def get_domain_details(domain):
|
|
|
319 |
|
320 |
def format_leaderboard_table(df):
|
321 |
"""Format the leaderboard table for display"""
|
322 |
+
# Create display-friendly format
|
323 |
df_display = df.copy()
|
324 |
+
# Truncate long URLs for better display
|
325 |
df_display['Paper'] = df_display['Paper'].apply(
|
326 |
+
lambda x: "π Link" if x.startswith('http') else x
|
327 |
)
|
328 |
return df_display
|
329 |
|