Update app.py
Browse files
app.py
CHANGED
|
@@ -357,27 +357,77 @@ footer p {
|
|
| 357 |
.submission-section {
|
| 358 |
margin: 40px auto;
|
| 359 |
padding: 30px;
|
| 360 |
-
background: linear-gradient(135deg, #
|
| 361 |
-
border-radius:
|
| 362 |
-
box-shadow: 0
|
| 363 |
-
|
| 364 |
-
max-width: 900px;
|
| 365 |
text-align: center;
|
| 366 |
}
|
| 367 |
-
|
| 368 |
.submission-section h2 {
|
| 369 |
font-size: 2.5em;
|
| 370 |
color: #6a1b9a;
|
| 371 |
margin-bottom: 20px;
|
| 372 |
font-weight: bold;
|
| 373 |
}
|
| 374 |
-
|
| 375 |
.submission-section p {
|
| 376 |
font-size: 1.2em;
|
| 377 |
color: #333;
|
| 378 |
margin-bottom: 30px;
|
| 379 |
}
|
| 380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 381 |
/* Input Fields Styling */
|
| 382 |
#submission-fields input[type="file"],
|
| 383 |
#submission-fields input[type="text"] {
|
|
@@ -391,19 +441,16 @@ footer p {
|
|
| 391 |
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
| 392 |
transition: all 0.3s ease;
|
| 393 |
}
|
| 394 |
-
|
| 395 |
#submission-fields input[type="file"]:hover,
|
| 396 |
#submission-fields input[type="text"]:hover {
|
| 397 |
border-color: #6a1b9a; /* Darker purple on hover */
|
| 398 |
}
|
| 399 |
-
|
| 400 |
#submission-fields input[type="file"]:focus,
|
| 401 |
#submission-fields input[type="text"]:focus {
|
| 402 |
border-color: #6a1b9a; /* Darker purple on focus */
|
| 403 |
outline: none;
|
| 404 |
box-shadow: 0 0 8px rgba(106, 27, 154, 0.5); /* Glow effect */
|
| 405 |
}
|
| 406 |
-
|
| 407 |
/* Evaluation Status Styling */
|
| 408 |
#evaluation-status {
|
| 409 |
margin-top: 15px;
|
|
@@ -411,12 +458,11 @@ footer p {
|
|
| 411 |
font-size: 1em;
|
| 412 |
border-radius: 8px;
|
| 413 |
border: 2px solid #6a1b9a; /* Matches the hover color */
|
| 414 |
-
background: #
|
| 415 |
color: #333;
|
| 416 |
font-weight: bold;
|
| 417 |
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 418 |
}
|
| 419 |
-
|
| 420 |
/* Buttons Styling */
|
| 421 |
#submission-buttons button {
|
| 422 |
padding: 12px 25px;
|
|
@@ -430,13 +476,11 @@ footer p {
|
|
| 430 |
transition: all 0.3s ease;
|
| 431 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
| 432 |
}
|
| 433 |
-
|
| 434 |
#submission-buttons button:hover {
|
| 435 |
background: #8c52d3; /* Slightly lighter purple */
|
| 436 |
transform: scale(1.05);
|
| 437 |
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
|
| 438 |
}
|
| 439 |
-
|
| 440 |
#submission-buttons button:active {
|
| 441 |
background: #5e1287; /* Darker purple */
|
| 442 |
transform: scale(0.98);
|
|
@@ -444,7 +488,6 @@ footer p {
|
|
| 444 |
}
|
| 445 |
|
| 446 |
|
| 447 |
-
|
| 448 |
"""
|
| 449 |
|
| 450 |
# Create the Gradio Interface
|
|
|
|
| 357 |
.submission-section {
|
| 358 |
margin: 40px auto;
|
| 359 |
padding: 30px;
|
| 360 |
+
background: linear-gradient(135deg, #ffffff, #f9f9ff);
|
| 361 |
+
border-radius: 12px;
|
| 362 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
| 363 |
+
max-width: 800px;
|
|
|
|
| 364 |
text-align: center;
|
| 365 |
}
|
|
|
|
| 366 |
.submission-section h2 {
|
| 367 |
font-size: 2.5em;
|
| 368 |
color: #6a1b9a;
|
| 369 |
margin-bottom: 20px;
|
| 370 |
font-weight: bold;
|
| 371 |
}
|
|
|
|
| 372 |
.submission-section p {
|
| 373 |
font-size: 1.2em;
|
| 374 |
color: #333;
|
| 375 |
margin-bottom: 30px;
|
| 376 |
}
|
| 377 |
+
#submission-fields {
|
| 378 |
+
display: flex;
|
| 379 |
+
flex-direction: column;
|
| 380 |
+
gap: 20px;
|
| 381 |
+
align-items: center;
|
| 382 |
+
}
|
| 383 |
+
#submission-fields input[type="file"],
|
| 384 |
+
#submission-fields input[type="text"] {
|
| 385 |
+
width: 90%;
|
| 386 |
+
max-width: 400px;
|
| 387 |
+
padding: 12px 15px;
|
| 388 |
+
font-size: 1em;
|
| 389 |
+
border: 2px solid #d3bce8;
|
| 390 |
+
border-radius: 8px;
|
| 391 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
| 392 |
+
transition: border-color 0.3s ease;
|
| 393 |
+
}
|
| 394 |
+
#submission-fields input[type="file"]:focus,
|
| 395 |
+
#submission-fields input[type="text"]:focus {
|
| 396 |
+
border-color: #6a1b9a;
|
| 397 |
+
outline: none;
|
| 398 |
+
box-shadow: 0 0 5px rgba(106, 27, 154, 0.4);
|
| 399 |
+
}
|
| 400 |
+
#submission-results {
|
| 401 |
+
margin-top: 20px;
|
| 402 |
+
text-align: center;
|
| 403 |
+
}
|
| 404 |
+
#submission-buttons {
|
| 405 |
+
display: flex;
|
| 406 |
+
justify-content: center;
|
| 407 |
+
gap: 15px;
|
| 408 |
+
margin-top: 20px;
|
| 409 |
+
}
|
| 410 |
+
#submission-buttons button {
|
| 411 |
+
padding: 10px 20px;
|
| 412 |
+
font-size: 1em;
|
| 413 |
+
color: #ffffff;
|
| 414 |
+
background: #6a1b9a;
|
| 415 |
+
border: none;
|
| 416 |
+
border-radius: 30px;
|
| 417 |
+
cursor: pointer;
|
| 418 |
+
font-weight: bold;
|
| 419 |
+
transition: background 0.3s ease, transform 0.3s ease;
|
| 420 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| 421 |
+
}
|
| 422 |
+
#submission-buttons button:hover {
|
| 423 |
+
background: #8c52d3;
|
| 424 |
+
transform: scale(1.05);
|
| 425 |
+
}
|
| 426 |
+
#submission-buttons button:active {
|
| 427 |
+
background: #5e1287;
|
| 428 |
+
transform: scale(0.98);
|
| 429 |
+
}
|
| 430 |
+
/* Input Fields Styling */
|
| 431 |
/* Input Fields Styling */
|
| 432 |
#submission-fields input[type="file"],
|
| 433 |
#submission-fields input[type="text"] {
|
|
|
|
| 441 |
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
| 442 |
transition: all 0.3s ease;
|
| 443 |
}
|
|
|
|
| 444 |
#submission-fields input[type="file"]:hover,
|
| 445 |
#submission-fields input[type="text"]:hover {
|
| 446 |
border-color: #6a1b9a; /* Darker purple on hover */
|
| 447 |
}
|
|
|
|
| 448 |
#submission-fields input[type="file"]:focus,
|
| 449 |
#submission-fields input[type="text"]:focus {
|
| 450 |
border-color: #6a1b9a; /* Darker purple on focus */
|
| 451 |
outline: none;
|
| 452 |
box-shadow: 0 0 8px rgba(106, 27, 154, 0.5); /* Glow effect */
|
| 453 |
}
|
|
|
|
| 454 |
/* Evaluation Status Styling */
|
| 455 |
#evaluation-status {
|
| 456 |
margin-top: 15px;
|
|
|
|
| 458 |
font-size: 1em;
|
| 459 |
border-radius: 8px;
|
| 460 |
border: 2px solid #6a1b9a; /* Matches the hover color */
|
| 461 |
+
background: #f9f7fd; /* Subtle purple background */
|
| 462 |
color: #333;
|
| 463 |
font-weight: bold;
|
| 464 |
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 465 |
}
|
|
|
|
| 466 |
/* Buttons Styling */
|
| 467 |
#submission-buttons button {
|
| 468 |
padding: 12px 25px;
|
|
|
|
| 476 |
transition: all 0.3s ease;
|
| 477 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
| 478 |
}
|
|
|
|
| 479 |
#submission-buttons button:hover {
|
| 480 |
background: #8c52d3; /* Slightly lighter purple */
|
| 481 |
transform: scale(1.05);
|
| 482 |
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
|
| 483 |
}
|
|
|
|
| 484 |
#submission-buttons button:active {
|
| 485 |
background: #5e1287; /* Darker purple */
|
| 486 |
transform: scale(0.98);
|
|
|
|
| 488 |
}
|
| 489 |
|
| 490 |
|
|
|
|
| 491 |
"""
|
| 492 |
|
| 493 |
# Create the Gradio Interface
|