Update app.py
Browse files
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"), "
|
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,
|