zino36 commited on
Commit
db22e5d
·
verified ·
1 Parent(s): d66adea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,7 +71,7 @@ with gr.Blocks(css=css) as demo:
71
 
72
  with gr.Row():
73
  input_image = gr.Image(label="Input Image", type="pil" ,elem_id='img-display-input')
74
- depth_image_slider = ImageSlider(label="Depth Map with Slider View", elem_id='img-display-output', position=0.5)
75
  submit = gr.Button(value="Compute Depth")
76
  gray_depth_file = gr.File(label="Grayscale depth map", elem_id="download",)
77
  raw_file = gr.File(label="16-bit raw output (can be considered as disparity)", elem_id="download",)
@@ -84,7 +84,7 @@ with gr.Blocks(css=css) as demo:
84
 
85
  result = predict_depth(image)
86
 
87
- return [(original_image, result["depth"])]
88
 
89
  submit.click(on_submit, inputs=[input_image], outputs=[depth_image_slider])
90
 
 
71
 
72
  with gr.Row():
73
  input_image = gr.Image(label="Input Image", type="pil" ,elem_id='img-display-input')
74
+ depth_image_slider = gr.Image(label="Depth Map with Slider View", elem_id='img-display-output', position=0.5)
75
  submit = gr.Button(value="Compute Depth")
76
  gray_depth_file = gr.File(label="Grayscale depth map", elem_id="download",)
77
  raw_file = gr.File(label="16-bit raw output (can be considered as disparity)", elem_id="download",)
 
84
 
85
  result = predict_depth(image)
86
 
87
+ return [result["depth"]]
88
 
89
  submit.click(on_submit, inputs=[input_image], outputs=[depth_image_slider])
90