Spaces:
Running
Running
openhands
commited on
Commit
·
ae0bf64
1
Parent(s):
ca754bb
Fix missing get_combined_icon_html reference in main page
Browse files- Fixed remaining reference to removed get_combined_icon_html function
- Now using get_openness_icon_html inline function instead
- Tested locally and app runs successfully without errors
- ui_components.py +7 -5
ui_components.py
CHANGED
|
@@ -374,11 +374,13 @@ def create_leaderboard_display(
|
|
| 374 |
lambda row: trophy_icon_html if row['id'] in pareto_agent_names else '',
|
| 375 |
axis=1
|
| 376 |
)
|
| 377 |
-
# Create
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
|
|
|
|
|
|
| 382 |
|
| 383 |
# Format cost columns
|
| 384 |
for col in df_view.columns:
|
|
|
|
| 374 |
lambda row: trophy_icon_html if row['id'] in pareto_agent_names else '',
|
| 375 |
axis=1
|
| 376 |
)
|
| 377 |
+
# Create simple openness icons
|
| 378 |
+
def get_openness_icon_html(row):
|
| 379 |
+
openness_val = row.get('Openness', '')
|
| 380 |
+
uri = get_svg_as_data_uri(OPENNESS_ICON_MAP.get(openness_val, "assets/ellipse-pink.svg"))
|
| 381 |
+
return f'<img src="{uri}" alt="{openness_val}" title="{openness_val}" style="width:24px; height:24px;">'
|
| 382 |
+
|
| 383 |
+
df_view['Icon'] = df_view.apply(get_openness_icon_html, axis=1)
|
| 384 |
|
| 385 |
# Format cost columns
|
| 386 |
for col in df_view.columns:
|