Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def create_3d_obj(rgb_image, depth_image, image_path, depth=10):
|
|
102 |
|
103 |
title = "2D to 3D Web App che sfrutta un modello DPT<a href='https://huggingface.co/Intel/dpt-large' target='_blank'>(MiDaS 3.0)</a>"
|
104 |
description = "Questa demo utilizza un modello DPT per il calcolo della profondità di un'immagine, può calcolare poi una point cloud che usa per generare una mesh texturizzata."
|
105 |
-
examples = [["
|
106 |
|
107 |
iface = gr.Interface(fn=process_image,
|
108 |
inputs=[gr.Image(
|
|
|
102 |
|
103 |
title = "2D to 3D Web App che sfrutta un modello DPT<a href='https://huggingface.co/Intel/dpt-large' target='_blank'>(MiDaS 3.0)</a>"
|
104 |
description = "Questa demo utilizza un modello DPT per il calcolo della profondità di un'immagine, può calcolare poi una point cloud che usa per generare una mesh texturizzata."
|
105 |
+
examples = [["examples/" + img] for img in os.listdir("examples/")]
|
106 |
|
107 |
iface = gr.Interface(fn=process_image,
|
108 |
inputs=[gr.Image(
|