Spaces:
Running on Zero
Running on Zero
Rawal Khirodkar commited on
Commit ·
e8443ba
1
Parent(s): 3505ed1
Seg: bump image heights to 768; restore purple gradient title
Browse files
app.py
CHANGED
|
@@ -173,9 +173,11 @@ CUSTOM_CSS = """
|
|
| 173 |
-moz-osx-font-smoothing: grayscale;
|
| 174 |
}
|
| 175 |
|
| 176 |
-
#title { text-align: center; font-size:
|
| 177 |
-
letter-spacing: -0.01em;
|
| 178 |
-
|
|
|
|
|
|
|
| 179 |
#subtitle { text-align: center; font-size: 12px; color: #64748b;
|
| 180 |
letter-spacing: 0.18em; margin: 0 0 14px; text-transform: uppercase;
|
| 181 |
font-weight: 500; }
|
|
@@ -235,11 +237,11 @@ with gr.Blocks(title="Sapiens2 Seg", theme=gr.themes.Soft(), css=CUSTOM_CSS) as
|
|
| 235 |
gr.HTML(HEADER_HTML)
|
| 236 |
|
| 237 |
with gr.Row(equal_height=True):
|
| 238 |
-
inp = gr.Image(label="Input", type="pil", height=
|
| 239 |
out_annot = gr.AnnotatedImage(
|
| 240 |
label="Body parts",
|
| 241 |
color_map=_CLASS_COLORS_HEX,
|
| 242 |
-
height=
|
| 243 |
show_legend=True,
|
| 244 |
elem_id="seg-out",
|
| 245 |
)
|
|
|
|
| 173 |
-moz-osx-font-smoothing: grayscale;
|
| 174 |
}
|
| 175 |
|
| 176 |
+
#title { text-align: center; font-size: 44px; font-weight: 700;
|
| 177 |
+
letter-spacing: -0.01em; margin: 28px 0 4px;
|
| 178 |
+
background: linear-gradient(90deg, #1d4ed8 0%, #6d28d9 50%, #be185d 100%);
|
| 179 |
+
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 180 |
+
background-clip: text; }
|
| 181 |
#subtitle { text-align: center; font-size: 12px; color: #64748b;
|
| 182 |
letter-spacing: 0.18em; margin: 0 0 14px; text-transform: uppercase;
|
| 183 |
font-weight: 500; }
|
|
|
|
| 237 |
gr.HTML(HEADER_HTML)
|
| 238 |
|
| 239 |
with gr.Row(equal_height=True):
|
| 240 |
+
inp = gr.Image(label="Input", type="pil", height=768)
|
| 241 |
out_annot = gr.AnnotatedImage(
|
| 242 |
label="Body parts",
|
| 243 |
color_map=_CLASS_COLORS_HEX,
|
| 244 |
+
height=768,
|
| 245 |
show_legend=True,
|
| 246 |
elem_id="seg-out",
|
| 247 |
)
|