zino36 commited on
Commit
34365bb
1 Parent(s): f165604

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -73,17 +73,10 @@ with gr.Blocks(css=css) as demo:
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", type="pil", elem_id='img-display-output')
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",)
78
-
79
- cmap = matplotlib.colormaps.get_cmap('Spectral_r')
80
 
81
  def on_submit(image):
82
  original_image = image.copy()
83
-
84
-
85
  result = predict_depth(image)
86
-
87
  return result["depth"]
88
 
89
  submit.click(on_submit, inputs=[input_image], outputs=[depth_image_slider])
 
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", type="pil", elem_id='img-display-output')
75
  submit = gr.Button(value="Compute Depth")
 
 
 
 
76
 
77
  def on_submit(image):
78
  original_image = image.copy()
 
 
79
  result = predict_depth(image)
 
80
  return result["depth"]
81
 
82
  submit.click(on_submit, inputs=[input_image], outputs=[depth_image_slider])