geoalgo commited on
Commit
d684081
Β·
1 Parent(s): 5a3c0ba
Files changed (2) hide show
  1. app.py +19 -2
  2. uv.lock +8 -2
app.py CHANGED
@@ -38,6 +38,23 @@ def build_plots(metric, subdataset):
38
 
39
 
40
  CUSTOM_CSS = """\
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  /* ── Accent top bar ─────────────────────────────────────── */
42
  .gradio-container::before {
43
  content: "";
@@ -79,7 +96,7 @@ button.tab-nav-button.selected {
79
  """
80
 
81
  with gr.Blocks(title="Impermanent Leaderboard") as app:
82
- gr.Markdown("# Impermanent Leaderboard")
83
  gr.Markdown(
84
  "A **live** time-series forecasting benchmark designed to avoid data contamination. "
85
  "Automated pipelines continuously fetch fresh data from GitHub β€” including the number of "
@@ -196,4 +213,4 @@ Currently **{n_dates} evaluations** are available, from **{date_min}** to **{dat
196
  )
197
 
198
  if __name__ == "__main__":
199
- app.launch(css=CUSTOM_CSS)
 
38
 
39
 
40
  CUSTOM_CSS = """\
41
+ /* ── Page background ────────────────────────────────────── */
42
+ .gradio-container {
43
+ background: #f0f4f8 !important;
44
+ }
45
+
46
+ /* ── Title banner ───────────────────────────────────────── */
47
+ .title-banner {
48
+ background: #2d3748 !important;
49
+ padding: 16px 24px !important;
50
+ border-radius: 8px;
51
+ margin-bottom: 6px !important;
52
+ }
53
+ .title-banner h1 {
54
+ color: #fff !important;
55
+ margin: 0 !important;
56
+ }
57
+
58
  /* ── Accent top bar ─────────────────────────────────────── */
59
  .gradio-container::before {
60
  content: "";
 
96
  """
97
 
98
  with gr.Blocks(title="Impermanent Leaderboard") as app:
99
+ gr.Markdown("# Impermanent Leaderboard", elem_classes=["title-banner"])
100
  gr.Markdown(
101
  "A **live** time-series forecasting benchmark designed to avoid data contamination. "
102
  "Automated pipelines continuously fetch fresh data from GitHub β€” including the number of "
 
213
  )
214
 
215
  if __name__ == "__main__":
216
+ app.launch(css=CUSTOM_CSS, ssr_mode=False)
uv.lock CHANGED
@@ -530,19 +530,25 @@ version = "0.1.0"
530
  source = { virtual = "." }
531
  dependencies = [
532
  { name = "gradio" },
533
- { name = "ipython" },
534
  { name = "matplotlib" },
535
  { name = "pandas" },
536
  ]
537
 
 
 
 
 
 
538
  [package.metadata]
539
  requires-dist = [
540
  { name = "gradio", specifier = ">=6.5.1" },
541
- { name = "ipython", specifier = ">=9.10.0" },
542
  { name = "matplotlib", specifier = ">=3.10.8" },
543
  { name = "pandas", specifier = ">=3.0.0" },
544
  ]
545
 
 
 
 
546
  [[package]]
547
  name = "ipython"
548
  version = "9.10.0"
 
530
  source = { virtual = "." }
531
  dependencies = [
532
  { name = "gradio" },
 
533
  { name = "matplotlib" },
534
  { name = "pandas" },
535
  ]
536
 
537
+ [package.dev-dependencies]
538
+ dev = [
539
+ { name = "ipython" },
540
+ ]
541
+
542
  [package.metadata]
543
  requires-dist = [
544
  { name = "gradio", specifier = ">=6.5.1" },
 
545
  { name = "matplotlib", specifier = ">=3.10.8" },
546
  { name = "pandas", specifier = ">=3.0.0" },
547
  ]
548
 
549
+ [package.metadata.requires-dev]
550
+ dev = [{ name = "ipython", specifier = ">=9.10.0" }]
551
+
552
  [[package]]
553
  name = "ipython"
554
  version = "9.10.0"