Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,6 +64,28 @@ except ImportError:
|
|
64 |
def add_new_eval(*_):
|
65 |
return "Submission placeholder."
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
# ---------------------------------------------------------------------------
|
68 |
# Leaderboard data (static demo data for now)
|
69 |
# ---------------------------------------------------------------------------
|
@@ -219,6 +241,31 @@ def restart_space():
|
|
219 |
# ---------------------------------------------------------------------------
|
220 |
|
221 |
# --- CLEAN introduction typography override ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
intro_css = """
|
223 |
/* --------------------------------------------------
|
224 |
INTRODUCTION BLOCK (font, size, alignment)
|
@@ -237,6 +284,12 @@ intro_css = """
|
|
237 |
margin-bottom: 0.5rem;
|
238 |
/* color: inherit; */ /* Inherit color from parent/theme */
|
239 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
@media (max-width: 768px) {
|
241 |
.introduction-wrapper, .introduction-section {
|
242 |
font-size: 1.3rem !important; /* Maintain size on mobile */
|
|
|
64 |
def add_new_eval(*_):
|
65 |
return "Submission placeholder."
|
66 |
|
67 |
+
|
68 |
+
icons_html = """
|
69 |
+
<p align="center" style="font-family:'Segoe UI', Roboto, sans-serif; font-weight:bold; text-transform:uppercase;">
|
70 |
+
<a href="https://arxiv.org/abs/1706.03762">
|
71 |
+
<img src="https://img.shields.io/badge/Arxiv-1706.03762-000000.svg?style=flat-square&logo=arxiv&logoColor=%23FFD700&labelColor=000000" height="28">
|
72 |
+
</a>
|
73 |
+
|
74 |
+
<a href="https://mle-dojo.github.io/MLE-Dojo-page/">
|
75 |
+
<img src="https://img.shields.io/badge/Project%20Website-%20-000000.svg?style=flat-square&logo=Google-Chrome&logoColor=%23FFD700&labelColor=000000" height="28">
|
76 |
+
</a>
|
77 |
+
|
78 |
+
<a href="https://huggingface.co/spaces/MLE-Dojo/Leaderboard">
|
79 |
+
<img src="https://img.shields.io/badge/Leaderboard-000000.svg?style=flat-square&logo=github&logoColor=%23FFD700&labelColor=000000" height="28">
|
80 |
+
</a>
|
81 |
+
</p>
|
82 |
+
"""
|
83 |
+
|
84 |
+
# Append the icons HTML to the INTRODUCTION_TEXT
|
85 |
+
# It's important that INTRODUCTION_TEXT is a string here.
|
86 |
+
# If IMPORTED_INTRODUCTION_TEXT from src.about could be non-string, you'd need more checks.
|
87 |
+
INTRODUCTION_TEXT += icons_html
|
88 |
+
|
89 |
# ---------------------------------------------------------------------------
|
90 |
# Leaderboard data (static demo data for now)
|
91 |
# ---------------------------------------------------------------------------
|
|
|
241 |
# ---------------------------------------------------------------------------
|
242 |
|
243 |
# --- CLEAN introduction typography override ---
|
244 |
+
# intro_css = """
|
245 |
+
# /* --------------------------------------------------
|
246 |
+
# INTRODUCTION BLOCK (font, size, alignment)
|
247 |
+
# -------------------------------------------------- */
|
248 |
+
# .introduction-wrapper, .introduction-section {
|
249 |
+
# font-family: Arial, sans-serif; /* Added sans-serif fallback */
|
250 |
+
# font-size: 1.3rem !important; /* ≈22–23 px */
|
251 |
+
# line-height: 1.75;
|
252 |
+
# /* color: #344054; */ /* Rely on theme for base text color */
|
253 |
+
# text-align: center;
|
254 |
+
# max-width: 1000px;
|
255 |
+
# margin: 0 auto 1rem auto;
|
256 |
+
# }
|
257 |
+
# .introduction-wrapper p, .introduction-section p {
|
258 |
+
# font-size: 1.3rem !important; /* ≈22–23 px */
|
259 |
+
# margin-bottom: 0.5rem;
|
260 |
+
# /* color: inherit; */ /* Inherit color from parent/theme */
|
261 |
+
# }
|
262 |
+
# @media (max-width: 768px) {
|
263 |
+
# .introduction-wrapper, .introduction-section {
|
264 |
+
# font-size: 1.3rem !important; /* Maintain size on mobile */
|
265 |
+
# }
|
266 |
+
# }
|
267 |
+
# """
|
268 |
+
|
269 |
intro_css = """
|
270 |
/* --------------------------------------------------
|
271 |
INTRODUCTION BLOCK (font, size, alignment)
|
|
|
284 |
margin-bottom: 0.5rem;
|
285 |
/* color: inherit; */ /* Inherit color from parent/theme */
|
286 |
}
|
287 |
+
/* The icons HTML is part of the Markdown content now, so specific CSS for it might go here or be general Markdown paragraph styling */
|
288 |
+
.introduction-wrapper > p:last-child { /* Targets the paragraph with icons if it's the last child */
|
289 |
+
margin-top: 1rem; /* Add some space above the icons */
|
290 |
+
margin-bottom: 1.5rem; /* Add some space below the icons */
|
291 |
+
}
|
292 |
+
|
293 |
@media (max-width: 768px) {
|
294 |
.introduction-wrapper, .introduction-section {
|
295 |
font-size: 1.3rem !important; /* Maintain size on mobile */
|