Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,9 +70,8 @@ def depth_normal(img):
|
|
| 70 |
img = Image.fromarray(formatted)
|
| 71 |
return img
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
depth = gr.outputs.Image(type="pil",label="Output Depth")
|
| 76 |
#normal = gr.outputs.Image(type="pil",label="Output Normal")
|
| 77 |
|
| 78 |
title = "Metric3DS"
|
|
@@ -84,4 +83,8 @@ examples = [
|
|
| 84 |
["lions.jpg"]
|
| 85 |
]
|
| 86 |
|
| 87 |
-
gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
img = Image.fromarray(formatted)
|
| 71 |
return img
|
| 72 |
|
| 73 |
+
#inputs = gr.inputs.Image(type='pil', label="Original Image")
|
| 74 |
+
#depth = gr.outputs.Image(type="pil",label="Output Depth")
|
|
|
|
| 75 |
#normal = gr.outputs.Image(type="pil",label="Output Normal")
|
| 76 |
|
| 77 |
title = "Metric3DS"
|
|
|
|
| 83 |
["lions.jpg"]
|
| 84 |
]
|
| 85 |
|
| 86 |
+
gr.Interface(
|
| 87 |
+
depth_normal,
|
| 88 |
+
inputs=[gr.Image(type='pil', label="Original Image")],
|
| 89 |
+
outputs=[gr.Image(type="pil",label="Output Depth")],
|
| 90 |
+
title=title, description=description, article=article, examples=examples, analytics_enabled=False).launch(enable_queue=True,cache_examples=True)
|