Sandeepa commited on
Commit
3226818
·
1 Parent(s): f44d430

PIL image fix

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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.preprocess(image_bytes_to_pil_image), outputs="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()