Spaces:
Runtime error

JustSkyDev commited on
Commit
7c7039a
·
1 Parent(s): 97a07f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from PIL import Image
3
- from process import Segment
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.inputs.Image(),
20
- outputs=gr.outputs.Image(),
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