CharlieAmalet commited on
Commit
c5c5a80
·
verified ·
1 Parent(s): 37840e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -20,6 +20,7 @@ css = """
20
  #img-display-input {
21
  max-height: 40vh;
22
  }
 
23
  #img-display-output {
24
  max-height: 40vh;
25
  }
@@ -106,7 +107,7 @@ def get_mesh(model, image: Image.Image, keep_edges=True):
106
  # ----------- Mesh functions
107
 
108
  title = "# ZoeDepth"
109
- description = """Official demo for **ZoeDepth: Zero-shot Transfer by Combining Relative and Metric Depth**."""
110
 
111
  with gr.Blocks(css=css) as API:
112
  gr.Markdown(title)
@@ -120,7 +121,8 @@ with gr.Blocks(css=css) as API:
120
 
121
  with gr.Tab("Image to 3D"):
122
  with gr.Row():
123
- inputs=[gr.Image(label="Input Image", type='pil'), gr.Checkbox(label="Keep occlusion edges", value=True)]
 
124
  outputs=gr.Model3D(label="3D Mesh", clear_color=[1.0, 1.0, 1.0, 1.0])
125
  generate_btn = gr.Button(value="Generate")
126
  generate_btn.click(partial(get_mesh, model), inputs=inputs, outputs=outputs, api_name="generate_mesh")
 
20
  #img-display-input {
21
  max-height: 40vh;
22
  }
23
+
24
  #img-display-output {
25
  max-height: 40vh;
26
  }
 
107
  # ----------- Mesh functions
108
 
109
  title = "# ZoeDepth"
110
+ description = """Unofficial demo for **ZoeDepth: Zero-shot Transfer by Combining Relative and Metric Depth**."""
111
 
112
  with gr.Blocks(css=css) as API:
113
  gr.Markdown(title)
 
121
 
122
  with gr.Tab("Image to 3D"):
123
  with gr.Row():
124
+ with gr.Column():
125
+ inputs=[gr.Image(label="Input Image", type='pil'), gr.Checkbox(label="Keep occlusion edges", value=True)]
126
  outputs=gr.Model3D(label="3D Mesh", clear_color=[1.0, 1.0, 1.0, 1.0])
127
  generate_btn = gr.Button(value="Generate")
128
  generate_btn.click(partial(get_mesh, model), inputs=inputs, outputs=outputs, api_name="generate_mesh")