File size: 6,783 Bytes
1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 1ce4675 4a78d34 c8059ad 8471f6d 4a78d34 74e8b76 66f1c0c 0b8ba75 66f1c0c 1249741 66f1c0c d5a5b95 66f1c0c 853a51e 66f1c0c 853a51e 66f1c0c 9feb151 d5a5b95 5b6e29d d5a5b95 5b6e29d 853a51e 74e8b76 5af940a 1249741 1ce4675 4a78d34 |
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 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# custom_css = """
# .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);
# }
# #leaderboard-table {
# margin-top: 15px
# }
# #leaderboard-table-lite {
# margin-top: 15px
# }
# #search-bar-table-box > div:first-child {
# background: none;
# border: none;
# }
# #search-bar {
# padding: 0px;
# }
# /* Limit the width of the first AutoEvalColumn so that names don't expand too much */
# #leaderboard-table td:nth-child(2),
# #leaderboard-table th:nth-child(2) {
# max-width: 400px;
# overflow: auto;
# white-space: nowrap;
# }
# .tab-buttons button {
# font-size: 20px;
# }
# #scale-logo {
# border-style: none !important;
# box-shadow: none;
# display: block;
# margin-left: auto;
# margin-right: auto;
# max-width: 600px;
# }
# #scale-logo .download {
# display: none;
# }
# #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
# }
# body, .gradio-container {
# font-family: Roboto, sans-serif;
# background-color: #ffffff;
# color: #000000; /* main text color */
# margin: 0;
# padding: 0;
# }
# h1, h2, h3, h4, h5, h6 {
# color: #eb088a; /* your brand color for headings */
# font-weight: 600;
# margin-bottom: 1rem;
# }
# /* Example ‘intro-block’ styling if you want extra flair */
# .intro-block {
# background-color: #eb088a10; /* light tinted background */
# padding: 1.5rem;
# border-radius: 10px;
# margin-bottom: 2rem;
# }
# """
# custom_css = """
# /* 1) Load Karbon Font: Make sure this points to your actual font files */
# @font-face {
# font-family: 'Karbon';
# src: url('path/to/Karbon.woff2') format('woff2'),
# url('path/to/Karbon.woff') format('woff');
# font-weight: normal;
# font-style: normal;
# }
# /* 2) Global Container */
# body, .gradio-container {
# font-family: 'Karbon', sans-serif;
# margin: 0;
# padding: 0;
# background-color: #fafafa; /* Light background */
# color: #000000;
# }
# .gradio-container {
# max-width: 1200px;
# margin: 0 auto;
# padding: 2rem 1rem;
# }
# /* 3) Headings, with brand color #eb088a */
# h1, h2, h3, h4, h5, h6 {
# color: #000000;
# margin-bottom: 1rem;
# font-weight: 600;
# }
# /* 4) Intro Block for a slight highlight */
# .intro-block {
# background-color: #ffe2f1; /* lighter tint of #eb088a */
# padding: 1.5rem;
# border-radius: 8px;
# border: 1px solid #f8badb;
# margin-bottom: 2rem;
# }
# /* 5) Tab styling - remove default orange styling */
# .tab-buttons {
# margin-top: 1rem;
# margin-bottom: 1rem;
# display: flex;
# }
# .tab-buttons > .tabitem {
# padding: 0.6rem 1.2rem;
# background-color: #ffffff;
# border: 1px solid #eb088a;
# border-radius: 6px;
# color: #eb088a;
# margin-right: 5px;
# cursor: pointer;
# transition: background-color 0.2s ease, color 0.2s ease;
# font-weight: 500;
# }
# .tab-buttons > .tabitem.selected {
# background-color: #eb088a;
# color: #ffffff;
# }
# .tab-buttons > .tabitem:hover {
# background-color: #eb088a;
# color: #ffffff;
# }
# /* 6) Dataframe Styling */
# .gr-dataframe table {
# width: 100%;
# border-collapse: collapse;
# border: 1px solid #cccccc;
# margin-bottom: 2rem;
# }
# .gr-dataframe th {
# background-color: #eb088a;
# color: #ffffff;
# padding: 0.6rem;
# text-align: left;
# font-weight: 600;
# }
# .gr-dataframe td {
# padding: 0.6rem;
# border-bottom: 1px solid #e0e0e0;
# }
# .gr-dataframe tr:nth-child(even) {
# background-color: #fdfdfd;
# }
# /* 7) Make default markdown text nice */
# .markdown-text p {
# margin-bottom: 1rem;
# line-height: 1.6;
# }
# """
custom_js = """
function tableLinkHack() {
// This is a hack to make the table links work
var allTableLinks = document.querySelectorAll(".llm-benchmark-tab-table .table-wrap table.table a")
for (var link of allTableLinks) {
link.addEventListener("click", e => {
window.open(e.target.href, e.target.target);
});
}
}
"""
custom_css = """
.tab-buttons button {
font-size: 20px;
}
.intro-block {
padding: 20px;
}
.header-row {
height: 0;
min-height: 0;
}
.tabitem {
padding-top: 0;
}
.html-container {
padding: 0;
}
#page-header {
display: flex;
justify-content: center;
text-align: center;
margin-bottom: 1rem;
}
#header-container{
display: flex;
width: 800px;
}
#left-container {
flex: 1;
}
#left-container #black-logo, #left-container #white-logo {
height: 150px;
width: 150px;
}
#left-container #black-logo {
display: block;
}
#left-container #white-logo {
display: none;
}
#centre-container {
align-self: center;
}
#right-container {
flex: 1;
}
.llm-benchmark-tab-table .table-wrap table.table {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: rgb(97, 97, 97);
overflow-y: auto;
overflow-x: auto;
}
.llm-benchmark-tab-table .table-wrap table.table tr td,
.llm-benchmark-tab-table .table-wrap table.table tr th {
border-bottom: 1px solid var(--border-color-primary);
}
.llm-benchmark-tab-table .table-wrap table.table a {
color: rgb(2, 136, 209) !important;
}
@media (prefers-color-scheme: dark) {
#left-container #black-logo {
display: none;
}
#left-container #white-logo {
display: block;
}
}
"""
# .selected.svelte-1tcem6n.svelte-1tcem6n {
# background-color: #000000 !important; /* Desired background color */
# color: #eb088a !important; /* Desired text color */
# border-color: #eb088a !important; /* Desired border color */
# }
get_window_url_params = """
function(url_params) {
const params = new URLSearchParams(window.location.search);
url_params = Object.fromEntries(params);
return url_params;
}
"""
|