Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -592,13 +592,51 @@ def create_interface():
|
|
| 592 |
with gr.Column(scale=2):
|
| 593 |
gr.Markdown("## Image Input")
|
| 594 |
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 602 |
)
|
| 603 |
|
| 604 |
with gr.Group():
|
|
|
|
| 592 |
with gr.Column(scale=2):
|
| 593 |
gr.Markdown("## Image Input")
|
| 594 |
|
| 595 |
+
gr.HTML(
|
| 596 |
+
"""
|
| 597 |
+
<style>
|
| 598 |
+
.close-toggle {
|
| 599 |
+
/* Hide the checkbox itself */
|
| 600 |
+
position: absolute;
|
| 601 |
+
opacity: 0;
|
| 602 |
+
pointer-events: none;
|
| 603 |
+
}
|
| 604 |
+
|
| 605 |
+
/* When checked, hide the alert */
|
| 606 |
+
.close-toggle:checked + .alert {
|
| 607 |
+
display: none;
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
.alert {
|
| 611 |
+
position: relative;
|
| 612 |
+
padding: 12px 40px 12px 12px;
|
| 613 |
+
background: #fff3cd; /* pale yellow */
|
| 614 |
+
color: #664d03;
|
| 615 |
+
border: 1px solid #ffe69c;
|
| 616 |
+
border-radius: 8px;
|
| 617 |
+
font-family: system-ui, sans-serif;
|
| 618 |
+
}
|
| 619 |
+
|
| 620 |
+
.alert .close {
|
| 621 |
+
position: absolute;
|
| 622 |
+
top: 6px;
|
| 623 |
+
right: 10px;
|
| 624 |
+
font-size: 20px;
|
| 625 |
+
font-weight: bold;
|
| 626 |
+
color: #664d03;
|
| 627 |
+
cursor: pointer;
|
| 628 |
+
user-select: none;
|
| 629 |
+
text-decoration: none;
|
| 630 |
+
}
|
| 631 |
+
</style>
|
| 632 |
+
|
| 633 |
+
<input id="alert-close-1" class="close-toggle" type="checkbox">
|
| 634 |
+
|
| 635 |
+
<div class="alert">
|
| 636 |
+
<label for="alert-close-1" class="close" aria-label="Close alert">×</label>
|
| 637 |
+
⚠️ Image was resized for better visualization — not equal to dataset original size.
|
| 638 |
+
</div>
|
| 639 |
+
"""
|
| 640 |
)
|
| 641 |
|
| 642 |
with gr.Group():
|