File size: 5,052 Bytes
131edb5
b615923
 
 
 
 
 
 
131edb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b615923
 
131edb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b615923
 
 
 
 
 
 
 
131edb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b615923
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131edb5
 
 
 
 
 
 
 
 
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
custom_css = """

:root {
  --block-radius: 0px !important;
  --table-radius: 0px !important;
  --input-radius: 0px !important;
}

/* Hides the final AutoEvalColumn */
#llm-benchmark-tab-table table td:last-child,
#llm-benchmark-tab-table table th:last-child {
    display: none;
}
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
table td:first-child,
table th:first-child {
    max-width: none; /* Remove any max-width or set it to a higher value */
    overflow: visible; /* Set overflow to visible to ensure the content is not hidden */
    white-space: normal; /* Allow the text to wrap */
}

table {
    table-layout: auto; /* Change from fixed to auto if necessary */
    overflow-x: auto; /* Enable horizontal scrolling if the table is too wide */
    display: block; /* Set display to block for table to behave like a block element */
}

/* Full width space */
.gradio-container {
    max-width: 95%!important;
    font-family: Open Sans,sans-serif;
    line-height: 1.75em !important;
}

/* Text style and margins */
.markdown-text {
    font-size: 16px !important;
}
#models-to-add-text {
    font-size: 18px !important;
}
#citation-button span {
    font-size: 16px !important;
}
#citation-button textarea {
    font-size: 16px !important;
}
#citation-button > label > button {
    margin: 6px;
    transform: scale(1.3);
}
#search-bar-table-box > div:first-child {
    background: none;
    border: none;
}

#search-bar {
    padding: 0px;
}
.tab-buttons button {
    font-size: 20px;
}
.tab-buttons {
    padding-top: 40px;
}

/* Center Tabs */
.tab-buttons > div > div:nth-child(2) {
    justify-content: center;
}

/* Filters style */
#filter_type{
    border: 0;
    padding-left: 0;
    padding-top: 0;
}
#filter_type label {
    display: flex;
}
#filter_type label > span{
    margin-top: var(--spacing-lg);
    margin-right: 0.5em;
}
#filter_type label > .wrap{
    width: 103px;
}
#filter_type label > .wrap .wrap-inner{  
    padding: 2px;
}
#filter_type label > .wrap .wrap-inner input{
    width: 1px;
}
#filter-columns-type{
    border:0;
    padding:0.5;
}
#filter-columns-size{
    border:0;
    padding:0.5;
}
#box-filter > .form{
    border: 0
}

#intro {
    padding: 40px 0;
    border: 1px solid var(--border-color-primary);
}

#intro > div {
    padding-left: 2em;
    padding-right: 2em;
    min-width: 0px !important;
}

.image_header {
    display: flex;
    gap: 15px;
    align-items: center;
}


p {
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 1.75em !important;
}

.button {
    border: 1px solid #174DA3;
    font-family: IBM Plex Mono,monospace;
    background: none;
    padding: 5px 15px;
    color: #174DA3 !important;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    line-height: 1.75em !important;
}

.button:hover {
    cursor: pointer;
    background: #EBEEF4;
}

#llm-benchmark-tab-table-button {
    border-top-right-radius: unset !important;
    border-top-left-radius: unset !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

label {
    background: unset !important;
    border-radius: 0 !important;
    box-shadow: unset !important;
}

label > input {
    border-radius: 0 !important;
}

form {
    border-radius: 0 !important;
}

.principle_header {
    padding: 10px 20px;
    background-color: #EBEEF4;
    border: 1px solid var(--border-color-primary);
}

.technical_requirements {
    margin-top: -17px;
    gap: 0px;
    align-items: stretch;
}

.technical_requirements > div {
    gap: 0px;

}

.technical_requirements > div > div.form {
    border: unset !important;
}

.border_mid > div {
    border-left: 1px solid var(--border-color-primary);
    border-right: 1px solid var(--border-color-primary);
}

.border_bot > div {
    border-left: 1px solid var(--border-color-primary);
    border-right: 1px solid var(--border-color-primary);
    border-bottom: 1px solid var(--border-color-primary);
}

@media only screen and (max-width: 1200px) {
  .empty {
    visibility: hidden;
    display: none;
  }
  
}

@media only screen and (max-width: 800px) {
  .empty {
    visibility: hidden;
    display: none;
  }
  
  #intro {
    flex-direction: column;
    gap: 48px;
  }
}

.principle_icon {
    max-height:24px;
}

.github_icon {
    max-height:24px; 
    padding-right: 1em;
}

@media (prefers-color-scheme: dark) {
  .principle_header {
    background-color: var(--block-background-fill);
  }
  
  .button {
    border: 1px solid var(--color-accent);
    color: var(--color-accent) !important;
  }
  
  .principle_icon {
    filter: brightness(2);
  }
  
  .github_icon {
    filter: brightness(2);
  }
}

"""

get_window_url_params = """
    function(url_params) {
        const params = new URLSearchParams(window.location.search);
        url_params = Object.fromEntries(params);
        return url_params;
    }
    """