developy commited on
Commit
169d248
·
verified ·
1 Parent(s): 9345919

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -62,13 +62,15 @@ def infer(
62
 
63
  # 默认图像路径
64
  example_images = [
65
- "example/example_0.jpg",
66
- "example/example_1.jpg",
67
- "example/example_2.jpg",
68
- "example/example_3.jpg",
69
- "example/example_4.jpg",
70
- "example/example_5.jpg",
71
- "example/example_6.jpg"
 
 
72
  ]
73
 
74
  # css = """
@@ -115,7 +117,7 @@ with gr.Blocks(css=css) as demo:
115
  input_image = gr.Image(label="Input Image", type="pil", elem_id="img-display-input")
116
  with gr.Column():
117
  # depth_img_slider = ImageSlider(label="Depth Map with Slider View", elem_id="img-display-output", position=0.5)
118
- depth_map = gr.Image(label="Depth Map with Slider View", type="pil", interactive=False, elem_id="depth-map")
119
 
120
  # 计算按钮
121
  compute_button = gr.Button(value="Compute Depth")
 
62
 
63
  # 默认图像路径
64
  example_images = [
65
+ "in-the-wild_example-1/00.jpg",
66
+ "in-the-wild_example-1/01.jpg",
67
+ "in-the-wild_example-1/02.jpg",
68
+ "in-the-wild_example-1/03.jpg",
69
+ "in-the-wild_example-1/04.jpg",
70
+ "in-the-wild_example-1/05.jpg",
71
+ "in-the-wild_example-1/06.jpg",
72
+ "in-the-wild_example-1/07.jpg",
73
+ "in-the-wild_example-1/08.jpg",
74
  ]
75
 
76
  # css = """
 
117
  input_image = gr.Image(label="Input Image", type="pil", elem_id="img-display-input")
118
  with gr.Column():
119
  # depth_img_slider = ImageSlider(label="Depth Map with Slider View", elem_id="img-display-output", position=0.5)
120
+ depth_map = gr.Image(label="Depth Image", type="pil", interactive=False, elem_id="depth-map")
121
 
122
  # 计算按钮
123
  compute_button = gr.Button(value="Compute Depth")