Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ with gr.Blocks(css=css, theme=plum_theme) as demo:
|
|
| 176 |
with gr.Row():
|
| 177 |
# Left Column: Inputs
|
| 178 |
with gr.Column(scale=1):
|
| 179 |
-
input_image = gr.Image(label="Input Image", type="pil", height=
|
| 180 |
text_prompt = gr.Textbox(
|
| 181 |
label="Text Prompt",
|
| 182 |
placeholder="e.g., cat, ear, car wheel...",
|
|
@@ -189,8 +189,11 @@ with gr.Blocks(css=css, theme=plum_theme) as demo:
|
|
| 189 |
# Right Column: Output
|
| 190 |
with gr.Column(scale=1.5):
|
| 191 |
# AnnotatedImage creates a nice overlay visualization
|
| 192 |
-
output_image = gr.AnnotatedImage(label="Segmented Output", height=
|
| 193 |
-
|
|
|
|
|
|
|
|
|
|
| 194 |
# Examples
|
| 195 |
gr.Examples(
|
| 196 |
examples=[
|
|
|
|
| 176 |
with gr.Row():
|
| 177 |
# Left Column: Inputs
|
| 178 |
with gr.Column(scale=1):
|
| 179 |
+
input_image = gr.Image(label="Input Image", type="pil", height=300)
|
| 180 |
text_prompt = gr.Textbox(
|
| 181 |
label="Text Prompt",
|
| 182 |
placeholder="e.g., cat, ear, car wheel...",
|
|
|
|
| 189 |
# Right Column: Output
|
| 190 |
with gr.Column(scale=1.5):
|
| 191 |
# AnnotatedImage creates a nice overlay visualization
|
| 192 |
+
output_image = gr.AnnotatedImage(label="Segmented Output", height=450)
|
| 193 |
+
|
| 194 |
+
with gr.Row():
|
| 195 |
+
threshold = gr.Slider(label="Confidence Threshold", minimum=0.0, maximum=1.0, value=0.4, step=0.05)
|
| 196 |
+
|
| 197 |
# Examples
|
| 198 |
gr.Examples(
|
| 199 |
examples=[
|