covert components
Browse files
app.py
CHANGED
@@ -105,12 +105,12 @@ description = "This demo is a variation from the original <a href='https://huggi
|
|
105 |
examples = [["examples/" + img] for img in os.listdir("examples/")]
|
106 |
|
107 |
iface = gr.Interface(fn=process_image,
|
108 |
-
inputs=[gr.
|
109 |
type="filepath", label="Input Image")],
|
110 |
-
outputs=[gr.
|
111 |
-
gr.
|
112 |
1.0, 1.0, 1.0, 1.0]),
|
113 |
-
gr.
|
114 |
title=title,
|
115 |
description=description,
|
116 |
examples=examples,
|
|
|
105 |
examples = [["examples/" + img] for img in os.listdir("examples/")]
|
106 |
|
107 |
iface = gr.Interface(fn=process_image,
|
108 |
+
inputs=[gr.Image(
|
109 |
type="filepath", label="Input Image")],
|
110 |
+
outputs=[gr.Image(label="predicted depth", type="pil"),
|
111 |
+
gr.Model3D(label="3d mesh reconstruction", clear_color=[
|
112 |
1.0, 1.0, 1.0, 1.0]),
|
113 |
+
gr.File(label="3d gLTF")],
|
114 |
title=title,
|
115 |
description=description,
|
116 |
examples=examples,
|