Spaces:
Running
on
Zero
Running
on
Zero
set initial slider position to 0.5
Browse filesFor a better user experience, it would be ideal to have the image slider initially set at the center of the image.
app.py
CHANGED
@@ -60,7 +60,7 @@ with gr.Blocks(css=css) as demo:
|
|
60 |
|
61 |
with gr.Row():
|
62 |
input_image = gr.Image(label="Input Image", type='numpy', elem_id='img-display-input')
|
63 |
-
depth_image_slider = ImageSlider(label="Depth Map with Slider View", elem_id='img-display-output', position=0)
|
64 |
raw_file = gr.File(label="16-bit raw depth (can be considered as disparity)")
|
65 |
submit = gr.Button("Submit")
|
66 |
|
|
|
60 |
|
61 |
with gr.Row():
|
62 |
input_image = gr.Image(label="Input Image", type='numpy', elem_id='img-display-input')
|
63 |
+
depth_image_slider = ImageSlider(label="Depth Map with Slider View", elem_id='img-display-output', position=0.5,)
|
64 |
raw_file = gr.File(label="16-bit raw depth (can be considered as disparity)")
|
65 |
submit = gr.Button("Submit")
|
66 |
|