ysharma HF staff commited on
Commit
a0f34de
1 Parent(s): f24c91c

set initial slider position to 0.5

Browse files

For a better user experience, it would be ideal to have the image slider initially set at the center of the image.

Files changed (1) hide show
  1. app.py +1 -1
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