Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -308,35 +308,35 @@ def show_leaderboard():
|
|
| 308 |
# -------- UI --------
|
| 309 |
GLASS_CSS = """
|
| 310 |
:root {
|
| 311 |
-
--glass-bg: rgba(255, 255, 255, 0.
|
| 312 |
-
--glass-border: rgba(255, 255, 255, 0.
|
| 313 |
-
--accent: #
|
| 314 |
-
--accent-glow: rgba(0,
|
| 315 |
-
--text-main: #
|
| 316 |
-
--text-dim: #
|
| 317 |
}
|
| 318 |
|
| 319 |
body {
|
| 320 |
-
background: linear-gradient(135deg,#
|
| 321 |
-
color: var(--text-main);
|
| 322 |
font-family: "Inter", sans-serif;
|
| 323 |
}
|
| 324 |
|
| 325 |
h1,h2,h3,h4 {
|
| 326 |
color: var(--accent);
|
| 327 |
font-weight: 700;
|
| 328 |
-
text-shadow: 0 0
|
| 329 |
}
|
| 330 |
|
| 331 |
a {
|
| 332 |
-
color: #
|
| 333 |
font-weight: 500;
|
| 334 |
transition: 0.3s ease;
|
| 335 |
}
|
| 336 |
a:hover {
|
| 337 |
-
color: #
|
| 338 |
text-decoration: underline;
|
| 339 |
-
text-shadow: 0 0
|
| 340 |
}
|
| 341 |
|
| 342 |
p, li {
|
|
@@ -350,14 +350,14 @@ ul { margin: 6px 0 12px 18px; }
|
|
| 350 |
border: 1px solid var(--glass-border);
|
| 351 |
border-radius: 20px;
|
| 352 |
padding: 24px;
|
| 353 |
-
backdrop-filter: blur(
|
| 354 |
-
box-shadow: 0 8px
|
| 355 |
transition: all 0.3s ease-in-out;
|
| 356 |
}
|
| 357 |
.card:hover {
|
| 358 |
border-color: var(--accent);
|
| 359 |
-
box-shadow: 0
|
| 360 |
-
transform: scale(1.
|
| 361 |
}
|
| 362 |
|
| 363 |
button {
|
|
@@ -368,17 +368,17 @@ button {
|
|
| 368 |
border-radius: 12px;
|
| 369 |
cursor: pointer;
|
| 370 |
transition: all 0.3s ease;
|
| 371 |
-
box-shadow: 0 4px
|
| 372 |
}
|
| 373 |
button:hover {
|
| 374 |
-
background: #
|
| 375 |
-
box-shadow: 0 6px
|
| 376 |
transform: translateY(-2px);
|
| 377 |
}
|
| 378 |
|
| 379 |
input, textarea, select {
|
| 380 |
-
background: rgba(255, 255, 255, 0.
|
| 381 |
-
border: 1px solid rgba(
|
| 382 |
border-radius: 12px;
|
| 383 |
padding: 10px;
|
| 384 |
color: var(--text-main);
|
|
@@ -387,12 +387,28 @@ input, textarea, select {
|
|
| 387 |
}
|
| 388 |
input:focus, textarea:focus, select:focus {
|
| 389 |
border-color: var(--accent);
|
| 390 |
-
box-shadow: 0 0
|
| 391 |
}
|
| 392 |
|
| 393 |
.gradio-dropdown select {
|
| 394 |
-
color:
|
| 395 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
}
|
| 397 |
|
| 398 |
.gradio-markdown, .gradio-html {
|
|
|
|
| 308 |
# -------- UI --------
|
| 309 |
GLASS_CSS = """
|
| 310 |
:root {
|
| 311 |
+
--glass-bg: rgba(255, 255, 255, 0.6);
|
| 312 |
+
--glass-border: rgba(255, 255, 255, 0.8);
|
| 313 |
+
--accent: #0077cc;
|
| 314 |
+
--accent-glow: rgba(0, 119, 204, 0.5);
|
| 315 |
+
--text-main: #012b50;
|
| 316 |
+
--text-dim: #034a8f;
|
| 317 |
}
|
| 318 |
|
| 319 |
body {
|
| 320 |
+
background: linear-gradient(135deg, #cce6ff 0%, #99ccff 100%);
|
| 321 |
+
color: var(--text-main);
|
| 322 |
font-family: "Inter", sans-serif;
|
| 323 |
}
|
| 324 |
|
| 325 |
h1,h2,h3,h4 {
|
| 326 |
color: var(--accent);
|
| 327 |
font-weight: 700;
|
| 328 |
+
text-shadow: 0 0 4px var(--accent-glow);
|
| 329 |
}
|
| 330 |
|
| 331 |
a {
|
| 332 |
+
color: #005ea6;
|
| 333 |
font-weight: 500;
|
| 334 |
transition: 0.3s ease;
|
| 335 |
}
|
| 336 |
a:hover {
|
| 337 |
+
color: #0099ff;
|
| 338 |
text-decoration: underline;
|
| 339 |
+
text-shadow: 0 0 4px var(--accent-glow);
|
| 340 |
}
|
| 341 |
|
| 342 |
p, li {
|
|
|
|
| 350 |
border: 1px solid var(--glass-border);
|
| 351 |
border-radius: 20px;
|
| 352 |
padding: 24px;
|
| 353 |
+
backdrop-filter: blur(10px);
|
| 354 |
+
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
|
| 355 |
transition: all 0.3s ease-in-out;
|
| 356 |
}
|
| 357 |
.card:hover {
|
| 358 |
border-color: var(--accent);
|
| 359 |
+
box-shadow: 0 12px 36px var(--accent-glow);
|
| 360 |
+
transform: scale(1.02);
|
| 361 |
}
|
| 362 |
|
| 363 |
button {
|
|
|
|
| 368 |
border-radius: 12px;
|
| 369 |
cursor: pointer;
|
| 370 |
transition: all 0.3s ease;
|
| 371 |
+
box-shadow: 0 4px 12px var(--accent-glow);
|
| 372 |
}
|
| 373 |
button:hover {
|
| 374 |
+
background: #0099ff;
|
| 375 |
+
box-shadow: 0 6px 18px var(--accent-glow);
|
| 376 |
transform: translateY(-2px);
|
| 377 |
}
|
| 378 |
|
| 379 |
input, textarea, select {
|
| 380 |
+
background: rgba(255, 255, 255, 0.9);
|
| 381 |
+
border: 1px solid rgba(0,0,0,0.2);
|
| 382 |
border-radius: 12px;
|
| 383 |
padding: 10px;
|
| 384 |
color: var(--text-main);
|
|
|
|
| 387 |
}
|
| 388 |
input:focus, textarea:focus, select:focus {
|
| 389 |
border-color: var(--accent);
|
| 390 |
+
box-shadow: 0 0 8px var(--accent-glow);
|
| 391 |
}
|
| 392 |
|
| 393 |
.gradio-dropdown select {
|
| 394 |
+
color: var(--text-main);
|
| 395 |
+
background-color: #cce6ff;
|
| 396 |
+
border: 1px solid rgba(0,0,0,0.2);
|
| 397 |
+
border-radius: 12px;
|
| 398 |
+
padding: 8px;
|
| 399 |
+
}
|
| 400 |
+
.gradio-dropdown select option {
|
| 401 |
+
color: var(--text-main);
|
| 402 |
+
background-color: #99ccff;
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
.gradio-radio label {
|
| 406 |
+
color: var(--text-main);
|
| 407 |
+
cursor: pointer;
|
| 408 |
+
transition: 0.2s ease;
|
| 409 |
+
}
|
| 410 |
+
.gradio-radio input[type="radio"]:checked + label {
|
| 411 |
+
color: var(--accent);
|
| 412 |
}
|
| 413 |
|
| 414 |
.gradio-markdown, .gradio-html {
|