stojnvla commited on
Commit
1b2676b
·
1 Parent(s): fb8887f
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -37,8 +37,16 @@ def segment_image(img: PIL.Image.Image, classnames: str, use_lposs_plus: bool |
37
 
38
  demo = gr.Interface(
39
  fn=segment_image,
40
- inputs=["image", "text", "checkbox"],
41
- outputs=["annotatedimage"],
 
 
 
 
 
 
 
 
42
  )
43
 
44
  demo.launch()
 
37
 
38
  demo = gr.Interface(
39
  fn=segment_image,
40
+ inputs=[
41
+ gr.Image(label="Input Image"),
42
+ gr.Textbox(label="Class Names", info="Separate class names with commas"),
43
+ gr.Checkbox(label="Use LPOSS+", info="Enable pixel-level refinement using LPOSS+")
44
+ ],
45
+ outputs=[
46
+ gr.AnnotatedImage(label="Segmentation Results")
47
+ ],
48
+ title="LPOSS: Label Propagation Over Patches and Pixels for Open-vocabulary Semantic Segmentation",
49
+ description="Upload an image and specify the objects you want to segment by listing their names separated by commas.",
50
  )
51
 
52
  demo.launch()