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
Files changed (1) hide show
  1. app.py +6 -4
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 under the input, depth heatmap directly under the 3D mesh.
460
- # NOT equal_height otherwise the depth image (640px) stretches the Run button.
 
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", size="lg")
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)