aliabd HF staff commited on
Commit
e8df7a6
·
1 Parent(s): e0874a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def create_3d_obj(rgb_image, depth_image, image_path, depth=10):
105
  # define the title, description and examples
106
  title = "Demo: zero-shot depth estimation with DPT + 3D Point Cloud"
107
  description = "This demo is a variation from the original <a href='https://huggingface.co/spaces/nielsr/dpt-depth-estimation' target='_blank'>DPT Demo</a>. It uses the DPT model to predict the depth of an image and then uses 3D Point Cloud to create a 3D object."
108
- examples = [["examples/" + img] for img in os.listdir("examples/")]
109
 
110
  # define an interface with one Image input and 3 outputs: Image, Model3D and File
111
  iface = gr.Interface(fn=process_image,
 
105
  # define the title, description and examples
106
  title = "Demo: zero-shot depth estimation with DPT + 3D Point Cloud"
107
  description = "This demo is a variation from the original <a href='https://huggingface.co/spaces/nielsr/dpt-depth-estimation' target='_blank'>DPT Demo</a>. It uses the DPT model to predict the depth of an image and then uses 3D Point Cloud to create a 3D object."
108
+ examples = [["examples/1-jonathan-borba-CgWTqYxHEkg-unsplash.jpg"]]
109
 
110
  # define an interface with one Image input and 3 outputs: Image, Model3D and File
111
  iface = gr.Interface(fn=process_image,