Spaces:
Running
Running
css update
Browse files
app.py
CHANGED
|
@@ -143,7 +143,20 @@ sample = ds[1]
|
|
| 143 |
img, target = sample["image"], sample["remaining_lifespan"]
|
| 144 |
img.save("example.jpg")
|
| 145 |
|
| 146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
gr.Markdown("## Lifespan Predictor (Demo)")
|
| 148 |
|
| 149 |
with gr.Row(equal_height=True): # π this forces same height
|
|
|
|
| 143 |
img, target = sample["image"], sample["remaining_lifespan"]
|
| 144 |
img.save("example.jpg")
|
| 145 |
|
| 146 |
+
cus="""
|
| 147 |
+
#pred-box {
|
| 148 |
+
display: flex;
|
| 149 |
+
justify-content: center;
|
| 150 |
+
align-items: center;
|
| 151 |
+
height: 400px; /* match image height */
|
| 152 |
+
font-size: 36px;
|
| 153 |
+
font-weight: bold;
|
| 154 |
+
color: #2E86AB;
|
| 155 |
+
text-align: center;
|
| 156 |
+
}
|
| 157 |
+
"""
|
| 158 |
+
|
| 159 |
+
with gr.Blocks(css=cus) as demo:
|
| 160 |
gr.Markdown("## Lifespan Predictor (Demo)")
|
| 161 |
|
| 162 |
with gr.Row(equal_height=True): # π this forces same height
|