Commit
·
8c2e91f
1
Parent(s):
34686bf
small fix
Browse files- app.py +10 -3
- src/display/css_html_js.py +1 -1
app.py
CHANGED
|
@@ -10,6 +10,8 @@ from src.about import (
|
|
| 10 |
CITATION_BUTTON_TEXT,
|
| 11 |
EVALUATION_QUEUE_TEXT,
|
| 12 |
LLM_BENCHMARKS_TEXT,
|
|
|
|
|
|
|
| 13 |
)
|
| 14 |
from src.display.css_html_js import custom_css
|
| 15 |
from src.display.utils import (
|
|
@@ -153,14 +155,19 @@ def init_leaderboard(dataframe):
|
|
| 153 |
|
| 154 |
|
| 155 |
custom_css_extended = custom_css + """
|
|
|
|
|
|
|
|
|
|
| 156 |
#libero-leaderboard th {
|
| 157 |
font-size: 10px !important;
|
| 158 |
font-weight: bold !important;
|
| 159 |
-
padding:
|
| 160 |
}
|
|
|
|
|
|
|
| 161 |
#libero-leaderboard td {
|
| 162 |
-
font-size:
|
| 163 |
-
padding:
|
| 164 |
}
|
| 165 |
#libero-leaderboard th:first-child,
|
| 166 |
#libero-leaderboard td:first-child {
|
|
|
|
| 10 |
CITATION_BUTTON_TEXT,
|
| 11 |
EVALUATION_QUEUE_TEXT,
|
| 12 |
LLM_BENCHMARKS_TEXT,
|
| 13 |
+
INTRODUCTION_TEXT,
|
| 14 |
+
TITLE,
|
| 15 |
)
|
| 16 |
from src.display.css_html_js import custom_css
|
| 17 |
from src.display.utils import (
|
|
|
|
| 155 |
|
| 156 |
|
| 157 |
custom_css_extended = custom_css + """
|
| 158 |
+
/* More specific selectors to override Gradio defaults */
|
| 159 |
+
.gradio-container #libero-leaderboard th,
|
| 160 |
+
#libero-leaderboard thead th,
|
| 161 |
#libero-leaderboard th {
|
| 162 |
font-size: 10px !important;
|
| 163 |
font-weight: bold !important;
|
| 164 |
+
padding: 6px 8px !important;
|
| 165 |
}
|
| 166 |
+
.gradio-container #libero-leaderboard td,
|
| 167 |
+
#libero-leaderboard tbody td,
|
| 168 |
#libero-leaderboard td {
|
| 169 |
+
font-size: 12px !important;
|
| 170 |
+
padding: 6px 8px !important;
|
| 171 |
}
|
| 172 |
#libero-leaderboard th:first-child,
|
| 173 |
#libero-leaderboard td:first-child {
|
src/display/css_html_js.py
CHANGED
|
@@ -22,7 +22,7 @@ custom_css = """
|
|
| 22 |
}
|
| 23 |
|
| 24 |
#leaderboard-table {
|
| 25 |
-
margin-top:
|
| 26 |
}
|
| 27 |
|
| 28 |
#leaderboard-table-lite {
|
|
|
|
| 22 |
}
|
| 23 |
|
| 24 |
#leaderboard-table {
|
| 25 |
+
margin-top: 14px
|
| 26 |
}
|
| 27 |
|
| 28 |
#leaderboard-table-lite {
|