MedGRPO Team commited on
Commit ·
acee790
1
Parent(s): a571a44
update colors
Browse files
app.py
CHANGED
|
@@ -518,10 +518,11 @@ def format_official_leaderboard_html(df: pd.DataFrame) -> str:
|
|
| 518 |
metric_second[k] = sorted_vals[1] if len(sorted_vals) >= 2 else None
|
| 519 |
|
| 520 |
html = """<style>
|
| 521 |
-
.off-table-wrap {
|
| 522 |
.off-table { width:100%; border-collapse:collapse; font-size:0.85rem; font-family:system-ui,-apple-system,sans-serif; background:#ffffff; color:#111827; }
|
| 523 |
.off-table th { background:#1e3a5f !important; color:#ffffff !important; padding:8px 6px; text-align:center; border-bottom:2px solid #1e3a5f; font-size:0.78rem; position:sticky; top:0; }
|
| 524 |
.off-table td { padding:6px; text-align:center; border-bottom:1px solid #e5e7eb; background:#ffffff; color:#111827; }
|
|
|
|
| 525 |
.off-table tr:hover td { background:#f0f7ff; }
|
| 526 |
.off-table tr[data-rank="1"] td { background:#fef2f2; font-weight:600; }
|
| 527 |
.off-table tr[data-rank="2"] td { background:#fffbeb; font-weight:600; }
|
|
@@ -529,8 +530,23 @@ def format_official_leaderboard_html(df: pd.DataFrame) -> str:
|
|
| 529 |
.off-table .model-col { text-align:left; font-weight:500; min-width:230px; white-space:nowrap; }
|
| 530 |
.off-table .model-col a { color:#1e3a5f !important; }
|
| 531 |
.off-table .org-col { text-align:left; color:#6b7280; font-size:0.8rem; white-space:nowrap; }
|
| 532 |
-
.off-table .
|
| 533 |
-
.off-table .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 534 |
</style>
|
| 535 |
<div class="off-table-wrap" style="overflow-x:auto; max-height:600px; overflow-y:auto;">
|
| 536 |
<table class="off-table">
|
|
@@ -1573,10 +1589,11 @@ def format_leaderboard_html(df: pd.DataFrame) -> str:
|
|
| 1573 |
|
| 1574 |
# Build HTML
|
| 1575 |
html = """<style>
|
| 1576 |
-
.lb-table-wrap {
|
| 1577 |
.lb-table { width:100%; border-collapse:collapse; font-size:0.85rem; font-family:system-ui,-apple-system,sans-serif; background:#ffffff; color:#111827; }
|
| 1578 |
.lb-table th { background:#f8fafc !important; color:#374151 !important; padding:8px 6px; text-align:center; border-bottom:2px solid #e5e7eb; font-size:0.78rem; position:sticky; top:0; z-index:1; }
|
| 1579 |
.lb-table td { padding:6px; text-align:center; border-bottom:1px solid #f3f4f6; background:#ffffff; color:#111827; }
|
|
|
|
| 1580 |
.lb-table tr:hover td { background:#f9fafb; }
|
| 1581 |
.lb-table tr[data-rank="1"] td { background:#fef2f2; font-weight:600; }
|
| 1582 |
.lb-table tr[data-rank="2"] td { background:#fffbeb; font-weight:600; }
|
|
@@ -1584,8 +1601,23 @@ def format_leaderboard_html(df: pd.DataFrame) -> str:
|
|
| 1584 |
.lb-table .model-col { text-align:left; font-weight:500; min-width:230px; white-space:nowrap; }
|
| 1585 |
.lb-table .model-col a { color:#1e3a5f !important; }
|
| 1586 |
.lb-table .org-col { text-align:left; color:#6b7280; font-size:0.8rem; white-space:nowrap; }
|
| 1587 |
-
.lb-table .
|
| 1588 |
-
.lb-table .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1589 |
</style>
|
| 1590 |
<div class="lb-table-wrap" style="overflow-x:auto; max-height:600px; overflow-y:auto;">
|
| 1591 |
<table class="lb-table">
|
|
|
|
| 518 |
metric_second[k] = sorted_vals[1] if len(sorted_vals) >= 2 else None
|
| 519 |
|
| 520 |
html = """<style>
|
| 521 |
+
.off-table-wrap { background:#ffffff; color:#111827; border-radius:6px; }
|
| 522 |
.off-table { width:100%; border-collapse:collapse; font-size:0.85rem; font-family:system-ui,-apple-system,sans-serif; background:#ffffff; color:#111827; }
|
| 523 |
.off-table th { background:#1e3a5f !important; color:#ffffff !important; padding:8px 6px; text-align:center; border-bottom:2px solid #1e3a5f; font-size:0.78rem; position:sticky; top:0; }
|
| 524 |
.off-table td { padding:6px; text-align:center; border-bottom:1px solid #e5e7eb; background:#ffffff; color:#111827; }
|
| 525 |
+
.off-table td * { color:inherit !important; }
|
| 526 |
.off-table tr:hover td { background:#f0f7ff; }
|
| 527 |
.off-table tr[data-rank="1"] td { background:#fef2f2; font-weight:600; }
|
| 528 |
.off-table tr[data-rank="2"] td { background:#fffbeb; font-weight:600; }
|
|
|
|
| 530 |
.off-table .model-col { text-align:left; font-weight:500; min-width:230px; white-space:nowrap; }
|
| 531 |
.off-table .model-col a { color:#1e3a5f !important; }
|
| 532 |
.off-table .org-col { text-align:left; color:#6b7280; font-size:0.8rem; white-space:nowrap; }
|
| 533 |
+
.off-table .org-col * { color:#6b7280 !important; }
|
| 534 |
+
.off-table .best-cell, .off-table td.best-cell, .off-table td.best-cell * { color:#b91c1c !important; font-weight:700; }
|
| 535 |
+
.off-table .second-cell, .off-table td.second-cell, .off-table td.second-cell * { color:#b45309 !important; font-weight:600; }
|
| 536 |
+
@media (prefers-color-scheme: dark) {
|
| 537 |
+
.off-table-wrap { background:#111827; color:#e5e7eb; }
|
| 538 |
+
.off-table { background:#111827; color:#e5e7eb; }
|
| 539 |
+
.off-table th { background:#0f1e33 !important; color:#e5e7eb !important; border-bottom-color:#0f1e33; }
|
| 540 |
+
.off-table td { background:#111827; color:#e5e7eb; border-bottom-color:#1f2937; }
|
| 541 |
+
.off-table tr:hover td { background:#1e293b; }
|
| 542 |
+
.off-table tr[data-rank="1"] td { background:#3b1f23; }
|
| 543 |
+
.off-table tr[data-rank="2"] td { background:#3b2e14; }
|
| 544 |
+
.off-table tr[data-rank="3"] td { background:#132b1d; }
|
| 545 |
+
.off-table .model-col a { color:#93c5fd !important; border-bottom-color:#93c5fd !important; }
|
| 546 |
+
.off-table .org-col, .off-table .org-col * { color:#9ca3af !important; }
|
| 547 |
+
.off-table .best-cell, .off-table td.best-cell, .off-table td.best-cell * { color:#fca5a5 !important; }
|
| 548 |
+
.off-table .second-cell, .off-table td.second-cell, .off-table td.second-cell * { color:#fcd34d !important; }
|
| 549 |
+
}
|
| 550 |
</style>
|
| 551 |
<div class="off-table-wrap" style="overflow-x:auto; max-height:600px; overflow-y:auto;">
|
| 552 |
<table class="off-table">
|
|
|
|
| 1589 |
|
| 1590 |
# Build HTML
|
| 1591 |
html = """<style>
|
| 1592 |
+
.lb-table-wrap { background:#ffffff; color:#111827; border-radius:6px; }
|
| 1593 |
.lb-table { width:100%; border-collapse:collapse; font-size:0.85rem; font-family:system-ui,-apple-system,sans-serif; background:#ffffff; color:#111827; }
|
| 1594 |
.lb-table th { background:#f8fafc !important; color:#374151 !important; padding:8px 6px; text-align:center; border-bottom:2px solid #e5e7eb; font-size:0.78rem; position:sticky; top:0; z-index:1; }
|
| 1595 |
.lb-table td { padding:6px; text-align:center; border-bottom:1px solid #f3f4f6; background:#ffffff; color:#111827; }
|
| 1596 |
+
.lb-table td * { color:inherit !important; }
|
| 1597 |
.lb-table tr:hover td { background:#f9fafb; }
|
| 1598 |
.lb-table tr[data-rank="1"] td { background:#fef2f2; font-weight:600; }
|
| 1599 |
.lb-table tr[data-rank="2"] td { background:#fffbeb; font-weight:600; }
|
|
|
|
| 1601 |
.lb-table .model-col { text-align:left; font-weight:500; min-width:230px; white-space:nowrap; }
|
| 1602 |
.lb-table .model-col a { color:#1e3a5f !important; }
|
| 1603 |
.lb-table .org-col { text-align:left; color:#6b7280; font-size:0.8rem; white-space:nowrap; }
|
| 1604 |
+
.lb-table .org-col * { color:#6b7280 !important; }
|
| 1605 |
+
.lb-table .best-cell, .lb-table td.best-cell, .lb-table td.best-cell * { color:#b91c1c !important; font-weight:700; }
|
| 1606 |
+
.lb-table .second-cell, .lb-table td.second-cell, .lb-table td.second-cell * { color:#b45309 !important; font-weight:600; }
|
| 1607 |
+
@media (prefers-color-scheme: dark) {
|
| 1608 |
+
.lb-table-wrap { background:#111827; color:#e5e7eb; }
|
| 1609 |
+
.lb-table { background:#111827; color:#e5e7eb; }
|
| 1610 |
+
.lb-table th { background:#0f1e33 !important; color:#e5e7eb !important; border-bottom-color:#1f2937; }
|
| 1611 |
+
.lb-table td { background:#111827; color:#e5e7eb; border-bottom-color:#1f2937; }
|
| 1612 |
+
.lb-table tr:hover td { background:#1e293b; }
|
| 1613 |
+
.lb-table tr[data-rank="1"] td { background:#3b1f23; }
|
| 1614 |
+
.lb-table tr[data-rank="2"] td { background:#3b2e14; }
|
| 1615 |
+
.lb-table tr[data-rank="3"] td { background:#132b1d; }
|
| 1616 |
+
.lb-table .model-col a { color:#93c5fd !important; border-bottom-color:#93c5fd !important; }
|
| 1617 |
+
.lb-table .org-col, .lb-table .org-col * { color:#9ca3af !important; }
|
| 1618 |
+
.lb-table .best-cell, .lb-table td.best-cell, .lb-table td.best-cell * { color:#fca5a5 !important; }
|
| 1619 |
+
.lb-table .second-cell, .lb-table td.second-cell, .lb-table td.second-cell * { color:#fcd34d !important; }
|
| 1620 |
+
}
|
| 1621 |
</style>
|
| 1622 |
<div class="lb-table-wrap" style="overflow-x:auto; max-height:600px; overflow-y:auto;">
|
| 1623 |
<table class="lb-table">
|