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

set initial slider position to 0.5 (#5)

Browse files

- set initial slider position to 0.5 (a0f34de3818438a24b9aaf93a15ba605eb063d6d)


Co-authored-by: yuvraj sharma <ysharma@users.noreply.huggingface.co>

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