SiyaYan commited on
Commit
8b512dc
Β·
verified Β·
1 Parent(s): 79589b6

css update

Browse files
Files changed (1) hide show
  1. app.py +14 -1
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
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
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