aesthetic updates
Browse files- app.py +3 -3
- src/about.py +2 -2
- src/display/css_html_js.py +13 -1
app.py
CHANGED
|
@@ -485,11 +485,11 @@ with demo:
|
|
| 485 |
gr.HTML(TITLE)
|
| 486 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
| 487 |
|
| 488 |
-
with gr.Tabs():
|
| 489 |
with gr.Tab("Getting Started"):
|
| 490 |
gr.Markdown(GETTING_STARTED_TEXT, elem_classes="markdown-text")
|
| 491 |
|
| 492 |
-
with gr.Tab("Blue Team"):
|
| 493 |
with gr.Row(elem_classes="blue-team"):
|
| 494 |
with gr.Column(scale=1):
|
| 495 |
gr.Markdown(BLUE_SUBMISSION_TEXT, elem_classes="markdown-text")
|
|
@@ -530,7 +530,7 @@ with demo:
|
|
| 530 |
)
|
| 531 |
blue_refresh_button = gr.Button("Refresh Blue leaderboard", variant="secondary")
|
| 532 |
|
| 533 |
-
with gr.Tab("Red Team"):
|
| 534 |
with gr.Row(elem_classes="red-team"):
|
| 535 |
with gr.Column(scale=1):
|
| 536 |
gr.Markdown(RED_SUBMISSION_TEXT, elem_classes="markdown-text")
|
|
|
|
| 485 |
gr.HTML(TITLE)
|
| 486 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
| 487 |
|
| 488 |
+
with gr.Tabs(elem_id="main-tabs"):
|
| 489 |
with gr.Tab("Getting Started"):
|
| 490 |
gr.Markdown(GETTING_STARTED_TEXT, elem_classes="markdown-text")
|
| 491 |
|
| 492 |
+
with gr.Tab("Blue Team", elem_id="blue-tab"):
|
| 493 |
with gr.Row(elem_classes="blue-team"):
|
| 494 |
with gr.Column(scale=1):
|
| 495 |
gr.Markdown(BLUE_SUBMISSION_TEXT, elem_classes="markdown-text")
|
|
|
|
| 530 |
)
|
| 531 |
blue_refresh_button = gr.Button("Refresh Blue leaderboard", variant="secondary")
|
| 532 |
|
| 533 |
+
with gr.Tab("Red Team", elem_id="red-tab"):
|
| 534 |
with gr.Row(elem_classes="red-team"):
|
| 535 |
with gr.Column(scale=1):
|
| 536 |
gr.Markdown(RED_SUBMISSION_TEXT, elem_classes="markdown-text")
|
src/about.py
CHANGED
|
@@ -19,8 +19,8 @@ INTRODUCTION_TEXT = """
|
|
| 19 |
|
| 20 |
The Re-Align Hackathon explores **representational alignment** across vision models.
|
| 21 |
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
|
| 25 |
Submissions are scored using [CKA (Centered Kernel Alignment)](https://arxiv.org/abs/1905.00414) computed on embeddings extracted from a fixed set of held-out images.
|
| 26 |
"""
|
|
|
|
| 19 |
|
| 20 |
The Re-Align Hackathon explores **representational alignment** across vision models.
|
| 21 |
|
| 22 |
+
- <span style="color: var(--blue-team); font-weight: 700;">Blue Team</span> — Find 20 models with the most aligned representations (maximize CKA)
|
| 23 |
+
- <span style="color: var(--red-team); font-weight: 700;">Red Team</span> — Find 1000 stimuli that drive model representations apart (minimize CKA)
|
| 24 |
|
| 25 |
Submissions are scored using [CKA (Centered Kernel Alignment)](https://arxiv.org/abs/1905.00414) computed on embeddings extracted from a fixed set of held-out images.
|
| 26 |
"""
|
src/display/css_html_js.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
custom_css = """
|
| 2 |
-
|
| 3 |
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap");
|
| 4 |
|
| 5 |
/* Force dark theme everywhere */
|
|
@@ -101,6 +101,16 @@ body,
|
|
| 101 |
border-bottom-color: var(--accent) !important;
|
| 102 |
}
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
/* Accordion */
|
| 105 |
.gradio-container .accordion {
|
| 106 |
background: var(--card-bg) !important;
|
|
@@ -158,6 +168,8 @@ body,
|
|
| 158 |
}
|
| 159 |
|
| 160 |
.hackathon-header h1 {
|
|
|
|
|
|
|
| 161 |
font-size: 40px;
|
| 162 |
letter-spacing: 0.02em;
|
| 163 |
margin-bottom: 6px;
|
|
|
|
| 1 |
custom_css = """
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@700;900&display=swap');
|
| 3 |
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap");
|
| 4 |
|
| 5 |
/* Force dark theme everywhere */
|
|
|
|
| 101 |
border-bottom-color: var(--accent) !important;
|
| 102 |
}
|
| 103 |
|
| 104 |
+
#blue-tab-button {
|
| 105 |
+
color: #58a6ff !important;
|
| 106 |
+
font-weight: bold;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
#red-tab-button {
|
| 110 |
+
color: #f85149 !important;
|
| 111 |
+
font-weight: bold;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
/* Accordion */
|
| 115 |
.gradio-container .accordion {
|
| 116 |
background: var(--card-bg) !important;
|
|
|
|
| 168 |
}
|
| 169 |
|
| 170 |
.hackathon-header h1 {
|
| 171 |
+
font-family: 'Lato', sans-serif;
|
| 172 |
+
font-weight: 900;
|
| 173 |
font-size: 40px;
|
| 174 |
letter-spacing: 0.02em;
|
| 175 |
margin-bottom: 6px;
|