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

Files changed (1) hide show
  1. 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 mapping for Openness / tooling
378
- df_view['Icon'] = df_view.apply(
379
- lambda row: get_combined_icon_html(row, PRELOADED_URI_MAP),
380
- axis=1 # IMPORTANT: axis=1 tells pandas to process row-by-row
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: