set initial slider position to 0.5

#5
by ysharma HF staff - opened
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