SiyaYan commited on
Commit
d91c488
Β·
verified Β·
1 Parent(s): b2963cf

css update

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -151,21 +151,20 @@ demo = gr.Interface(
151
  live=False,
152
  title="Lifespan Predictor (Demo)",
153
  description="Upload or take a face photo. Model predicts remaining lifespan (years).",
154
- examples=[["example.jpg"]] # πŸ‘ˆ make sure example.jpg exists in repo
 
 
 
 
 
 
 
 
 
 
 
 
155
  )
156
-
157
- # Add CSS to fix height + center content
158
- demo = demo.set_theme("default").css("""
159
- #pred-box {
160
- height: 500px; /* fixed height to match image */
161
- display: flex;
162
- justify-content: center; /* horizontal center */
163
- align-items: center; /* vertical center */
164
- font-size: 42px; /* bigger text */
165
- font-weight: bold;
166
- color: #2E86AB;
167
- text-align: center;
168
- }
169
- """)
170
  if __name__ == "__main__":
171
  demo.launch()
 
151
  live=False,
152
  title="Lifespan Predictor (Demo)",
153
  description="Upload or take a face photo. Model predicts remaining lifespan (years).",
154
+ examples=[["example.jpg"]], # πŸ‘ˆ make sure example.jpg exists in repo
155
+ css="""
156
+ #pred-box {
157
+ height: 500px; /* fixed height to match image */
158
+ display: flex;
159
+ justify-content: center; /* horizontal center */
160
+ align-items: center; /* vertical center */
161
+ font-size: 42px;
162
+ font-weight: bold;
163
+ color: #2E86AB;
164
+ text-align: center;
165
+ }
166
+ """
167
  )
168
+ demo.queue()
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  if __name__ == "__main__":
170
  demo.launch()