Update app.py
Browse files61 unmodified lines6263646566676869707172737440 unmodified lines11511611711811912012161 unmodified lines# 默认图像路径example_images = ["example/example_0.jpg","example/example_1.jpg","example/example_2.jpg","example/example_3.jpg","example/example_4.jpg","example/example_5.jpg","example/example_6.jpg"]# css = """40 unmodified linesinput_image = gr.Image(label="Input Image", type="pil", elem_id="img-display-input")with gr.Column():# depth_img_slider = ImageSlider(label="Depth Map with Slider View", elem_id="img-display-output", position=0.5)depth_map = gr.Image(label="Depth Map with Slider View", type="pil", interactive=False, elem_id="depth-map")# 计算按钮compute_button = gr.Button(value="Compute Depth")61 unmodified lines62636465666768697071727374757640 unmodified lines11711811912012112212361 unmodified lines# 默认图像路径example_images = ["in-the-wild_example-1/00.jpg","in-the-wild_example-1/01.jpg","in-the-wild_example-1/02.jpg","in-the-wild_example-1/03.jpg","in-the-wild_example-1/04.jpg","in-the-wild_example-1/05.jpg","in-the-wild_example-1/06.jpg","in-the-wild_example-1/07.jpg","in-the-wild_example-1/08.jpg",]# css = """40 unmodified linesinput_image = gr.Image(label="Input Image", type="pil", elem_id="img-display-input")with gr.Column():# depth_img_slider = ImageSlider(label="Depth Map with Slider View", elem_id="img-display-output", position=0.5)depth_map = gr.Image(label="Depth Image", type="pil", interactive=False, elem_id="depth-map")# 计算按钮compute_button = gr.Button(value="Compute Depth")
app.py+10-8