Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ import gradio as gr
|
|
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.
|
54 |
outputs="annotatedimage",
|
55 |
title="OWL π€ SAM",
|
56 |
description=description,
|
|
|
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(label = "Candidate Labels"), gr.Slider(0, 1, value=0.1, label="Confidence Threshold")],
|
54 |
outputs="annotatedimage",
|
55 |
title="OWL π€ SAM",
|
56 |
description=description,
|