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

PIL image fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,6 +16,6 @@ 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.BytesIO(label="Input Image")
20
  iface = gr.Interface(fn=reconstruction3d, inputs=input_image.preprocess(image_bytes_to_pil_image), outputs="image")
21
  iface.launch()
 
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()