JustSkyDev commited on
Commit ·
7c7039a
1
Parent(s): 97a07f3
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
| 3 |
-
from
|
| 4 |
|
| 5 |
def process_image(input_image):
|
| 6 |
# Convert the input image to PIL.Image format if it's not
|
|
@@ -16,9 +16,8 @@ def process_image(input_image):
|
|
| 16 |
# Define Gradio interface
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=process_image,
|
| 19 |
-
inputs=gr.
|
| 20 |
-
outputs=gr.
|
| 21 |
-
title="Dress Segmentation"
|
| 22 |
)
|
| 23 |
|
| 24 |
# Launch the interface
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
| 3 |
+
from system import Segment
|
| 4 |
|
| 5 |
def process_image(input_image):
|
| 6 |
# Convert the input image to PIL.Image format if it's not
|
|
|
|
| 16 |
# Define Gradio interface
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=process_image,
|
| 19 |
+
inputs=gr.components.Image(type="numpy"),
|
| 20 |
+
outputs=gr.components.Image(type="numpy")
|
|
|
|
| 21 |
)
|
| 22 |
|
| 23 |
# Launch the interface
|