Spaces:
Runtime error
Runtime error
JinHyeong99
commited on
Commit
ยท
27c1f72
1
Parent(s):
e11720a
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def segment_image(image):
|
|
| 24 |
# Gradio ์ธํฐํ์ด์ค ์ ์
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=segment_image,
|
| 27 |
-
inputs=gr.inputs.Image(),
|
| 28 |
examples = ['image1.jpg', 'image2.jpg', 'image3.jpg'],
|
| 29 |
outputs=['plot'],
|
| 30 |
title="SegFormer Image Segmentation",
|
|
|
|
| 24 |
# Gradio ์ธํฐํ์ด์ค ์ ์
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=segment_image,
|
| 27 |
+
inputs=gr.inputs.Image(type='pil'),
|
| 28 |
examples = ['image1.jpg', 'image2.jpg', 'image3.jpg'],
|
| 29 |
outputs=['plot'],
|
| 30 |
title="SegFormer Image Segmentation",
|