Forgor to remove tabs fully
Browse files
app.py
CHANGED
|
@@ -13,12 +13,10 @@ def get_depth(rgb):
|
|
| 13 |
return rgb, (depth.clip(0, 64) * 1024).astype("uint16")
|
| 14 |
|
| 15 |
|
| 16 |
-
|
| 17 |
gr.components.Image(label="rgb", type="pil"),
|
| 18 |
], outputs=[
|
| 19 |
gr.components.Image(type="pil", label="image"),
|
| 20 |
gr.components.Image(type="numpy", label="depth"),
|
| 21 |
|
| 22 |
-
])
|
| 23 |
-
|
| 24 |
-
gr.Interface(get_depth).launch(share=True)
|
|
|
|
| 13 |
return rgb, (depth.clip(0, 64) * 1024).astype("uint16")
|
| 14 |
|
| 15 |
|
| 16 |
+
gr.Interface(fn=get_depth, inputs=[
|
| 17 |
gr.components.Image(label="rgb", type="pil"),
|
| 18 |
], outputs=[
|
| 19 |
gr.components.Image(type="pil", label="image"),
|
| 20 |
gr.components.Image(type="numpy", label="depth"),
|
| 21 |
|
| 22 |
+
]).launch(share=True)
|
|
|
|
|
|