Spaces:
awacke1
/
Runtime error

merve HF staff commited on
Commit
9617fed
β€’
1 Parent(s): 6c303c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,10 +47,10 @@ def query(image, texts, threshold):
47
 
48
  import gradio as gr
49
 
50
- description = "This Space combines OWLv2, the state-of-the-art zero-shot object detection model with SAM, the state-of-the-art mask generation model. SAM normally doesn't accept text input. Combining SAM with OWLv2 makes SAM text promptable."
51
  demo = gr.Interface(
52
  query,
53
- inputs=[gr.Image(type="pil"), "text", gr.Slider(0, 1, value=0.2)],
54
  outputs="annotatedimage",
55
  title="OWL 🀝 SAM",
56
  description=description,
 
47
 
48
  import gradio as gr
49
 
50
+ description = "This Space combines OWLv2, the state-of-the-art zero-shot object detection model with SAM, the state-of-the-art mask generation model. SAM normally doesn't accept text input. Combining SAM with OWLv2 makes SAM text promptable. Try the example or input an image and comma separated candidate labels to segment."
51
  demo = gr.Interface(
52
  query,
53
+ inputs=[gr.Image(type="pil", label="Image Input"), gr.Textbox("Candidate Labels"), gr.Slider(0, 1, value=0.2, label="Confidence Threshold")],
54
  outputs="annotatedimage",
55
  title="OWL 🀝 SAM",
56
  description=description,