Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -560,61 +560,6 @@ def handle_file_upload(file):
|
|
| 560 |
|
| 561 |
# Gradio interface with light theme
|
| 562 |
css = """
|
| 563 |
-
/* Main container - white background */
|
| 564 |
-
.gradio-container {
|
| 565 |
-
background-color: white !important;
|
| 566 |
-
}
|
| 567 |
-
|
| 568 |
-
/* File upload area - YOUR color #EFFE8A */
|
| 569 |
-
.gradio-file,
|
| 570 |
-
input[type="file"],
|
| 571 |
-
.file-upload,
|
| 572 |
-
.upload-text,
|
| 573 |
-
.drag-drop-area,
|
| 574 |
-
[data-testid="file-upload"] {
|
| 575 |
-
background-color: #EFFE8A !important;
|
| 576 |
-
border: 2px dashed #d4c86a !important;
|
| 577 |
-
border-radius: 15px !important;
|
| 578 |
-
color: #333 !important;
|
| 579 |
-
}
|
| 580 |
-
|
| 581 |
-
/* File upload hover state */
|
| 582 |
-
.gradio-file:hover,
|
| 583 |
-
[data-testid="file-upload"]:hover {
|
| 584 |
-
background-color: #f5f0b3 !important;
|
| 585 |
-
border-color: #c3be72 !important;
|
| 586 |
-
}
|
| 587 |
-
|
| 588 |
-
/* File upload text */
|
| 589 |
-
.gradio-file .upload-text,
|
| 590 |
-
.gradio-file p,
|
| 591 |
-
[data-testid="file-upload"] p {
|
| 592 |
-
color: #333 !important;
|
| 593 |
-
font-weight: 500 !important;
|
| 594 |
-
}
|
| 595 |
-
|
| 596 |
-
/* HTML components (metrics) */
|
| 597 |
-
.gradio-html {
|
| 598 |
-
background-color: #EFFE8A !important;
|
| 599 |
-
border-radius: 15px !important;
|
| 600 |
-
padding: 15px !important;
|
| 601 |
-
border: 1px solid #e6d77a !important;
|
| 602 |
-
}
|
| 603 |
-
|
| 604 |
-
/* Image containers - white background */
|
| 605 |
-
.gradio-image {
|
| 606 |
-
background-color: white !important;
|
| 607 |
-
border: 2px solid #EFFE8A !important;
|
| 608 |
-
border-radius: 12px !important;
|
| 609 |
-
padding: 15px !important;
|
| 610 |
-
}
|
| 611 |
-
|
| 612 |
-
/* Remove any purple/default colors */
|
| 613 |
-
.primary,
|
| 614 |
-
.secondary {
|
| 615 |
-
background-color: #EFFE8A !important;
|
| 616 |
-
border-color: #d4c86a !important;
|
| 617 |
-
}
|
| 618 |
|
| 619 |
.metric-container {
|
| 620 |
display: flex;
|
|
|
|
| 560 |
|
| 561 |
# Gradio interface with light theme
|
| 562 |
css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 563 |
|
| 564 |
.metric-container {
|
| 565 |
display: flex;
|