Spaces:
Runtime error
Runtime error
PIL image fix
Browse files
app.py
CHANGED
@@ -12,10 +12,7 @@ def reconstruction3d(input_image):
|
|
12 |
output_mesh = mesh_network(pcd_img)
|
13 |
return output_mesh
|
14 |
|
15 |
-
def image_bytes_to_pil_image(image_bytes):
|
16 |
-
image = Image.open(io.BytesIO(image_bytes))
|
17 |
-
return image
|
18 |
|
19 |
input_image = gr.inputs.Image(label="Input Image", type="pil")
|
20 |
-
iface = gr.Interface(fn=reconstruction3d, inputs=input_image
|
21 |
iface.launch()
|
|
|
12 |
output_mesh = mesh_network(pcd_img)
|
13 |
return output_mesh
|
14 |
|
|
|
|
|
|
|
15 |
|
16 |
input_image = gr.inputs.Image(label="Input Image", type="pil")
|
17 |
+
iface = gr.Interface(fn=reconstruction3d, inputs=input_image, outputs="image")
|
18 |
iface.launch()
|