jadechoghari commited on
Commit
0e6a2e9
·
verified ·
1 Parent(s): c30e671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,7 +67,8 @@ description = "This Space combines OWLv2, the state-of-the-art zero-shot object
67
  demo = gr.Interface(
68
  query,
69
  inputs=[gr.Image(type="pil", label="Image Input"), gr.Textbox(label = "Candidate Labels"), gr.Slider(0, 1, value=0.05, label="Confidence Threshold")],
70
- outputs="annotatedimage",
 
71
  title="OWL 🤝 SAM",
72
  description=description,
73
  examples=[
 
67
  demo = gr.Interface(
68
  query,
69
  inputs=[gr.Image(type="pil", label="Image Input"), gr.Textbox(label = "Candidate Labels"), gr.Slider(0, 1, value=0.05, label="Confidence Threshold")],
70
+ # outputs="annotatedimage", #comment this out - it looks weird
71
+ outputs=gr.AnnotatedImage(label="Segmented Image"),
72
  title="OWL 🤝 SAM",
73
  description=description,
74
  examples=[