Spaces:
Runtime error
Runtime error
Rawal Khirodkar commited on
Commit ·
667e8cb
1
Parent(s): 908f3ea
Pointmap: shrink Run button (drop size=lg) + container=False on Radio so they don't fill the column
Browse files
app.py
CHANGED
|
@@ -456,16 +456,18 @@ with gr.Blocks(title="Sapiens2 Pointmap", theme=gr.themes.Soft(), css=CUSTOM_CSS
|
|
| 456 |
scale=3,
|
| 457 |
)
|
| 458 |
|
| 459 |
-
# Row 2: controls
|
| 460 |
-
#
|
|
|
|
| 461 |
with gr.Row():
|
| 462 |
-
with gr.Column(scale=2):
|
| 463 |
size = gr.Radio(
|
| 464 |
choices=["0.4B"], # iteration mode — re-add other sizes when shipping
|
| 465 |
value=DEFAULT_SIZE,
|
| 466 |
label="Model",
|
|
|
|
| 467 |
)
|
| 468 |
-
run = gr.Button("Run", variant="primary"
|
| 469 |
out_depth = gr.Image(label="Depth (Z)", type="pil", height=640, scale=3)
|
| 470 |
|
| 471 |
gr.Examples(examples=EXAMPLES, inputs=inp, examples_per_page=14)
|
|
|
|
| 456 |
scale=3,
|
| 457 |
)
|
| 458 |
|
| 459 |
+
# Row 2: controls (left) | depth heatmap (right). The controls are wrapped
|
| 460 |
+
# in a fixed-height container with explicit min_width so the Run button
|
| 461 |
+
# doesn't stretch to match the 640px depth image.
|
| 462 |
with gr.Row():
|
| 463 |
+
with gr.Column(scale=2, min_width=320):
|
| 464 |
size = gr.Radio(
|
| 465 |
choices=["0.4B"], # iteration mode — re-add other sizes when shipping
|
| 466 |
value=DEFAULT_SIZE,
|
| 467 |
label="Model",
|
| 468 |
+
container=False,
|
| 469 |
)
|
| 470 |
+
run = gr.Button("Run", variant="primary")
|
| 471 |
out_depth = gr.Image(label="Depth (Z)", type="pil", height=640, scale=3)
|
| 472 |
|
| 473 |
gr.Examples(examples=EXAMPLES, inputs=inp, examples_per_page=14)
|