Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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 [
|
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 |
|