File size: 2,215 Bytes
37745ed
633eed0
a7c5f7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62f5d66
a7c5f7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
633eed0
 
 
 
 
62f5d66
596f6e6
 
 
a7c5f7c
596f6e6
 
a7c5f7c
596f6e6
 
a7c5f7c
596f6e6
 
 
a7c5f7c
 
 
 
 
8fcb36a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Gradio custom styles for the TSFM Realworld Bench leaderboard.
custom_css = """
:root {
    --bench-ink: #18202f;
    --bench-muted: #5b6575;
    --bench-line: #d7dce5;
    --bench-panel: #f8fafc;
    --bench-blue: #2563eb;
    --bench-teal: #0f766e;
}
.gradio-container {
    max-width: 1320px !important;
    margin: 0 auto !important;
}
.markdown-text {
    font-size: 16px !important;
    color: var(--bench-muted);
}
.tab-buttons button {
    font-size: 16px !important;
    font-weight: 650 !important;
    border-radius: 6px 6px 0 0 !important;
}
#leaderboard-table { margin-top: 15px; }
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}
.summary-card {
    border: 1px solid var(--bench-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bench-panel) 100%);
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.summary-value {
    color: var(--bench-ink);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 780;
}
.summary-value.small {
    font-size: 18px;
    line-height: 1.35;
}
.summary-label {
    margin-top: 5px;
    color: var(--bench-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.dataframe {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--bench-line) !important;
}
.dataframe table {
    font-size: 14px !important;
}
.dataframe th {
    background: #eef2f7 !important;
    color: var(--bench-ink) !important;
    font-weight: 750 !important;
}
.dataframe td {
    color: #263244 !important;
}
.domain-heading {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.dataset-heading {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.35;
    color: var(--bench-ink);
}
.dataset-heading p {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0;
}
@media (max-width: 820px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
"""