danemery-ai2 commited on
Commit
9832707
·
unverified ·
1 Parent(s): 50fb0f5

Update table cells with tooltips and LLM count (#23)

Browse files
Files changed (3) hide show
  1. content.py +19 -8
  2. submission.py +1 -2
  3. ui_components.py +2 -3
content.py CHANGED
@@ -300,11 +300,28 @@ html:not(.dark) #legend-markdown .light-mode-icon,
300
  display: none;
301
  }
302
 
303
- /* Column description tooltip styles */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  #legend-markdown,
305
  #leaderboard-accordion {
306
  overflow: visible !important;
307
  }
 
 
308
  .tooltip-icon {
309
  display: inline-block;
310
  margin-left: 6px;
@@ -317,7 +334,7 @@ html:not(.dark) #legend-markdown .light-mode-icon,
317
  bottom: 125%;
318
  background-color: #105257;
319
  color: #fff;
320
- padding: 0px 10px 15px;
321
  border-radius: 4px;
322
  font-size: 12px;
323
  opacity: 0;
@@ -416,10 +433,4 @@ html:not(.dark) #legend-markdown .light-mode-icon,
416
  background: none;
417
  }
418
 
419
- /*------ This specific styles allows openness label tooltips to be visible ------*/
420
- .styler,
421
- #openness-label-html,
422
- #agent-tooling-label-html {
423
- overflow: visible !important;
424
- }
425
  """
 
300
  display: none;
301
  }
302
 
303
+ /*------ Openness label tooltip styles ------*/
304
+ .styler,
305
+ #openness-label-html,
306
+ #agent-tooling-label-html {
307
+ overflow: visible !important;
308
+ }
309
+ /*------ Table cell tooltip styles ------*/
310
+ .wrap.default.full,
311
+ span.wrap[tabindex="0"][role="button"][data-editable="false"] {
312
+ overflow: visible !important;
313
+ }
314
+ .table-container button,
315
+ .table-container table {
316
+ overflow: visible !important;
317
+ }
318
+ /*------ Table column description tooltip styles ------*/
319
  #legend-markdown,
320
  #leaderboard-accordion {
321
  overflow: visible !important;
322
  }
323
+
324
+ /*------ Global tooltip styles ------*/
325
  .tooltip-icon {
326
  display: inline-block;
327
  margin-left: 6px;
 
334
  bottom: 125%;
335
  background-color: #105257;
336
  color: #fff;
337
+ padding: 10px;
338
  border-radius: 4px;
339
  font-size: 12px;
340
  opacity: 0;
 
433
  background: none;
434
  }
435
 
 
 
 
 
 
 
436
  """
submission.py CHANGED
@@ -298,8 +298,7 @@ openness_label_html = """
298
  agent_tooling_label_html = """
299
  <div class="form-label-with-tooltip">
300
  Agent Tooling
301
- <span class="tooltip-icon" data-tooltip="
302
- • Standard: Only uses tools explicitly provided in state.tools
303
  • Equivalent: Uses custom tools with identical or more restricted capabilities
304
  • Fully Custom: Uses tools beyond constraints of Standard or Equivalent"
305
  >
 
298
  agent_tooling_label_html = """
299
  <div class="form-label-with-tooltip">
300
  Agent Tooling
301
+ <span class="tooltip-icon" data-tooltip="• Standard: Only uses tools explicitly provided in state.tools
 
302
  • Equivalent: Uses custom tools with identical or more restricted capabilities
303
  • Fully Custom: Uses tools beyond constraints of Standard or Equivalent"
304
  >
ui_components.py CHANGED
@@ -186,8 +186,7 @@ legend_markdown = f"""
186
  <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px;">{tooling_html}</div>
187
  </div>
188
 
189
- <div><b>Column Descriptions</b><span class="tooltip-icon" data-tooltip="
190
- • Overall Score: Performance across all benchmarks
191
  • Overall Cost: Cost per task in USD
192
  • Literature Understanding Score: Performance on scientific literature tasks
193
  • Literature Understanding Cost: Cost per literature understanding task in USD
@@ -600,7 +599,7 @@ def format_llm_base_with_html(value):
600
  # Join the list items with a newline character for a clean tooltip
601
  tooltip_text = "\n".join(map(str, value))
602
  # Return an HTML span with the title attribute for the tooltip
603
- return f'<span style="cursor: help;" title="{tooltip_text}">Multiple ⓘ</span>'
604
  if len(value) == 1:
605
  # If only one item, just return that item
606
  return value[0]
 
186
  <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px;">{tooling_html}</div>
187
  </div>
188
 
189
+ <div><b>Column Descriptions</b><span class="tooltip-icon" data-tooltip="• Overall Score: Performance across all benchmarks
 
190
  • Overall Cost: Cost per task in USD
191
  • Literature Understanding Score: Performance on scientific literature tasks
192
  • Literature Understanding Cost: Cost per literature understanding task in USD
 
599
  # Join the list items with a newline character for a clean tooltip
600
  tooltip_text = "\n".join(map(str, value))
601
  # Return an HTML span with the title attribute for the tooltip
602
+ return f'<span class="tooltip-icon" style="cursor: help;" data-tooltip="{tooltip_text}">{value[0]} (+ {len(value) - 1}) ⓘ</span>'
603
  if len(value) == 1:
604
  # If only one item, just return that item
605
  return value[0]