Calcharles commited on
Commit
4c58c33
Β·
1 Parent(s): 75d6072

updated leaderboard

Browse files
Files changed (3) hide show
  1. app.py +4 -4
  2. src/about.py +2 -2
  3. src/display/css_html_js.py +156 -7
app.py CHANGED
@@ -84,7 +84,7 @@ def create_leaderboard_interface():
84
  gr.HTML(TITLE)
85
 
86
  # Minimizable description section
87
- with gr.Accordion("πŸ“– Description", open=False):
88
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text", elem_id="description-text")
89
 
90
  # Get filter options
@@ -163,7 +163,7 @@ def create_leaderboard_interface():
163
  results_table = gr.Dataframe(
164
  value=df_values,
165
  headers=df_headers,
166
- label="Overall Rankings",
167
  interactive=False, # Disable editing but keep select events
168
  elem_id="results-table"
169
  )
@@ -190,12 +190,12 @@ def create_leaderboard_interface():
190
  )
191
 
192
  # About section
193
- with gr.Accordion("πŸ“– About MUSED-FM Leaderboard", open=False):
194
  gr.Markdown(BENCHMARKS_TEXT, elem_classes="markdown-text", elem_id="about-text")
195
 
196
  # Citation section
197
  with gr.Row():
198
- with gr.Accordion("πŸ“™ Citation", open=False):
199
  citation_button = gr.Textbox(
200
  value=CITATION_BUTTON_TEXT,
201
  label=CITATION_BUTTON_LABEL,
 
84
  gr.HTML(TITLE)
85
 
86
  # Minimizable description section
87
+ with gr.Accordion("πŸ“– Description", open=False, elem_id="description-accordion"):
88
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text", elem_id="description-text")
89
 
90
  # Get filter options
 
163
  results_table = gr.Dataframe(
164
  value=df_values,
165
  headers=df_headers,
166
+ label="",
167
  interactive=False, # Disable editing but keep select events
168
  elem_id="results-table"
169
  )
 
190
  )
191
 
192
  # About section
193
+ with gr.Accordion("πŸ“– About MUSED-FM Leaderboard", open=False, elem_id="about-accordion"):
194
  gr.Markdown(BENCHMARKS_TEXT, elem_classes="markdown-text", elem_id="about-text")
195
 
196
  # Citation section
197
  with gr.Row():
198
+ with gr.Accordion("πŸ“™ Citation", open=False, elem_id="citation-accordion"):
199
  citation_button = gr.Textbox(
200
  value=CITATION_BUTTON_TEXT,
201
  label=CITATION_BUTTON_LABEL,
src/about.py CHANGED
@@ -9,7 +9,7 @@ TITLE = """
9
  """
10
 
11
  INTRODUCTION_TEXT = """
12
- <div style="font-size: 20px; line-height: 1.6;">
13
  Welcome to the MUSED-FM Leaderboard! This leaderboard provides comprehensive evaluation results of multivariate time series forecasting. Rows are models and columns are performance metrics.
14
  Use the filters below to explore results by different criteria and compare model performance across various domains and categories. For additional details on the models, click on the models to access the Model Inspector below the table.
15
  Metrics are explained in "About MUSED-FM Leaderboard" below the table.
@@ -30,7 +30,7 @@ High performance on these datasets provides evidence that a model can utilize hi
30
  """
31
 
32
  BENCHMARKS_TEXT = """
33
- <div style="font-size: 20px; line-height: 1.6;">
34
 
35
  ## Evaluation Metrics
36
 
 
9
  """
10
 
11
  INTRODUCTION_TEXT = """
12
+ <div style="font-size: 16px; line-height: 1.6;">
13
  Welcome to the MUSED-FM Leaderboard! This leaderboard provides comprehensive evaluation results of multivariate time series forecasting. Rows are models and columns are performance metrics.
14
  Use the filters below to explore results by different criteria and compare model performance across various domains and categories. For additional details on the models, click on the models to access the Model Inspector below the table.
15
  Metrics are explained in "About MUSED-FM Leaderboard" below the table.
 
30
  """
31
 
32
  BENCHMARKS_TEXT = """
33
+ <div style="font-size: 16px; line-height: 1.6;">
34
 
35
  ## Evaluation Metrics
36
 
src/display/css_html_js.py CHANGED
@@ -182,7 +182,7 @@ custom_css = """
182
  outline: none !important;
183
  }
184
 
185
- /* Target the specific filter elements - full width */
186
  #model-search,
187
  #category-filter,
188
  #domain-filter,
@@ -196,9 +196,11 @@ custom_css = """
196
  min-width: 0 !important;
197
  max-width: none !important;
198
  margin: 0 !important;
199
- padding: 4px 8px !important;
200
  box-shadow: none !important;
201
  outline: none !important;
 
 
202
  }
203
 
204
  #model-search {
@@ -222,7 +224,7 @@ custom_css = """
222
  outline: none !important;
223
  }
224
 
225
- /* Target all input and select elements within filters */
226
  #filter-row input,
227
  #filter-row select,
228
  #filter-row .gradio-textbox,
@@ -232,6 +234,63 @@ custom_css = """
232
  box-shadow: none !important;
233
  outline: none !important;
234
  border-radius: 0 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  }
236
 
237
  /* Remove any grey backgrounds from the specific filter containers */
@@ -335,10 +394,18 @@ html {
335
  margin-bottom: 10px !important;
336
  }
337
 
338
- /* Reduce spacing in accordion content */
339
- .gradio-container .gradio-accordion .gradio-markdown {
340
- margin: 5px 0 !important;
341
- padding: 5px !important;
 
 
 
 
 
 
 
 
342
  }
343
 
344
  /* Aggressive removal of all grey backgrounds */
@@ -361,4 +428,86 @@ html {
361
  flex-wrap: nowrap !important;
362
  flex-direction: row !important;
363
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  """
 
182
  outline: none !important;
183
  }
184
 
185
+ /* Target the specific filter elements - consistent height and padding */
186
  #model-search,
187
  #category-filter,
188
  #domain-filter,
 
196
  min-width: 0 !important;
197
  max-width: none !important;
198
  margin: 0 !important;
199
+ padding: 0 !important;
200
  box-shadow: none !important;
201
  outline: none !important;
202
+ height: auto !important;
203
+ min-height: auto !important;
204
  }
205
 
206
  #model-search {
 
224
  outline: none !important;
225
  }
226
 
227
+ /* Target all input and select elements within filters - fix vertical alignment */
228
  #filter-row input,
229
  #filter-row select,
230
  #filter-row .gradio-textbox,
 
234
  box-shadow: none !important;
235
  outline: none !important;
236
  border-radius: 0 !important;
237
+ height: auto !important;
238
+ min-height: 28px !important;
239
+ max-height: 32px !important;
240
+ padding: 4px 6px !important;
241
+ margin-top: 0 !important;
242
+ margin-bottom: 0 !important;
243
+ vertical-align: top !important;
244
+ font-size: 14px !important;
245
+ display: block !important;
246
+ visibility: visible !important;
247
+ }
248
+
249
+ /* Specifically target text input for proper alignment and styling */
250
+ #filter-row .gradio-textbox,
251
+ #model-search {
252
+ height: auto !important;
253
+ min-height: 28px !important;
254
+ max-height: 80px !important;
255
+ font-size: 14px !important;
256
+ line-height: 5px !important;
257
+ display: block !important;
258
+ visibility: visible !important;
259
+ margin-top: 0 !important;
260
+ margin-bottom: 0 !important;
261
+ border: none !important;
262
+ border-bottom: none !important;
263
+ border-top: none !important;
264
+ border-left: none !important;
265
+ border-right: none !important;
266
+ background: transparent !important;
267
+ background-color: transparent !important;
268
+ box-shadow: none !important;
269
+ outline: none !important;
270
+ text-decoration: none !important;
271
+ }
272
+
273
+ /* Target the actual input element inside the textbox */
274
+ #filter-row .gradio-textbox input,
275
+ #model-search input,
276
+ #filter-row input[type="text"] {
277
+ border: none !important;
278
+ border-bottom: none !important;
279
+ border-top: none !important;
280
+ border-left: none !important;
281
+ border-right: none !important;
282
+ background: transparent !important;
283
+ background-color: transparent !important;
284
+ box-shadow: none !important;
285
+ outline: none !important;
286
+ text-decoration: none !important;
287
+ height: auto !important;
288
+ min-height: 28px !important;
289
+ max-height: 32px !important;
290
+ padding: 4px 6px !important;
291
+ margin: 0 !important;
292
+ font-size: 14px !important;
293
+ line-height: 10.2 !important;
294
  }
295
 
296
  /* Remove any grey backgrounds from the specific filter containers */
 
394
  margin-bottom: 10px !important;
395
  }
396
 
397
+ /* Larger text for description content */
398
+ #description-text,
399
+ .markdown-text {
400
+ font-size: 18px !important;
401
+ line-height: 1.6 !important;
402
+ }
403
+
404
+ /* Target description accordion specifically */
405
+ .gradio-container .gradio-accordion .gradio-markdown p,
406
+ .gradio-container .gradio-accordion .gradio-markdown div {
407
+ font-size: 18px !important;
408
+ line-height: 1.6 !important;
409
  }
410
 
411
  /* Aggressive removal of all grey backgrounds */
 
428
  flex-wrap: nowrap !important;
429
  flex-direction: row !important;
430
  }
431
+
432
+ /* Larger dropdown labels */
433
+ .gradio-container .gradio-form label,
434
+ .gradio-container .gradio-panel label,
435
+ .gradio-container .gradio-block label {
436
+ font-size: 18px !important;
437
+ font-weight: bold !important;
438
+ }
439
+
440
+ /* Target specific filter labels */
441
+ #model-search label,
442
+ #category-filter label,
443
+ #domain-filter label,
444
+ #dataset-filter label,
445
+ #sort-filter label {
446
+ font-size: 18px !important;
447
+ font-weight: bold !important;
448
+ }
449
+
450
+ /* Larger accordion labels - targeting specific IDs */
451
+ #description-accordion button,
452
+ #about-accordion button,
453
+ #citation-accordion button,
454
+ #model-inspector button {
455
+ font-size: 20px !important;
456
+ font-weight: bold !important;
457
+ }
458
+
459
+ /* Target accordion button spans */
460
+ #description-accordion button span,
461
+ #about-accordion button span,
462
+ #citation-accordion button span,
463
+ #model-inspector button span {
464
+ font-size: 20px !important;
465
+ font-weight: bold !important;
466
+ }
467
+
468
+ /* Force all accordion labels to be larger */
469
+ .gradio-container .gradio-accordion button {
470
+ font-size: 20px !important;
471
+ font-weight: bold !important;
472
+ }
473
+
474
+ .gradio-container .gradio-accordion button span {
475
+ font-size: 20px !important;
476
+ font-weight: bold !important;
477
+ }
478
+
479
+ /* Fix horizontal alignment - remove form container padding */
480
+ .gradio-container .gradio-form,
481
+ .gradio-container .gradio-panel,
482
+ .gradio-container .gradio-block {
483
+ padding: 0 !important;
484
+ margin: 0 !important;
485
+ text-align: left !important;
486
+ }
487
+
488
+ /* Align input fields directly under labels */
489
+ #model-search,
490
+ #category-filter,
491
+ #domain-filter,
492
+ #dataset-filter,
493
+ #sort-filter {
494
+ margin-left: 0 !important;
495
+ margin-right: 0 !important;
496
+ padding-left: 0 !important;
497
+ padding-right: 0 !important;
498
+ text-align: left !important;
499
+ }
500
+
501
+ /* Target the form containers specifically - consistent spacing */
502
+ #model-search .gradio-form,
503
+ #category-filter .gradio-form,
504
+ #domain-filter .gradio-form,
505
+ #dataset-filter .gradio-form,
506
+ #sort-filter .gradio-form {
507
+ padding: 0 !important;
508
+ margin: 0 !important;
509
+ text-align: left !important;
510
+ height: auto !important;
511
+ min-height: auto !important;
512
+ }
513
  """