Spaces:
Running on Zero
Running on Zero
fix: make pipeline/gradcam images square with no letterboxing, mirroring input image CSS
Browse files
app.py
CHANGED
|
@@ -420,9 +420,20 @@ td.metric-value {
|
|
| 420 |
width: 100% !important;
|
| 421 |
}
|
| 422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
#seg-row img,
|
| 424 |
-
#
|
|
|
|
|
|
|
| 425 |
object-fit: cover !important;
|
|
|
|
|
|
|
| 426 |
}
|
| 427 |
|
| 428 |
/* ββ Hide placeholder icon in output image blocks ββββββββββ */
|
|
|
|
| 420 |
width: 100% !important;
|
| 421 |
}
|
| 422 |
|
| 423 |
+
#seg-row [data-testid="image"],
|
| 424 |
+
#gradcam-row [data-testid="image"] {
|
| 425 |
+
aspect-ratio: 1 !important;
|
| 426 |
+
height: auto !important;
|
| 427 |
+
width: 100% !important;
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
#seg-row img,
|
| 431 |
+
#seg-row [data-testid="image"] img,
|
| 432 |
+
#gradcam-row img,
|
| 433 |
+
#gradcam-row [data-testid="image"] img {
|
| 434 |
object-fit: cover !important;
|
| 435 |
+
width: 100% !important;
|
| 436 |
+
height: 100% !important;
|
| 437 |
}
|
| 438 |
|
| 439 |
/* ββ Hide placeholder icon in output image blocks ββββββββββ */
|