Spaces:
Runtime error
Runtime error
PIL image fix
Browse files
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.
|
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()
|