Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -332,9 +332,6 @@ segm_img_b = gr.Image(
|
|
| 332 |
label="Segmented Image with Box-Prompt", interactive=False, type="pil"
|
| 333 |
)
|
| 334 |
|
| 335 |
-
global_points = gr.State([])
|
| 336 |
-
global_point_label = gr.State([])
|
| 337 |
-
|
| 338 |
input_size_slider = gr.components.Slider(
|
| 339 |
minimum=512,
|
| 340 |
maximum=1024,
|
|
@@ -345,6 +342,8 @@ input_size_slider = gr.components.Slider(
|
|
| 345 |
)
|
| 346 |
|
| 347 |
with gr.Blocks(css=css, title="Efficient SAM") as demo:
|
|
|
|
|
|
|
| 348 |
with gr.Row():
|
| 349 |
with gr.Column(scale=1):
|
| 350 |
# Title
|
|
|
|
| 332 |
label="Segmented Image with Box-Prompt", interactive=False, type="pil"
|
| 333 |
)
|
| 334 |
|
|
|
|
|
|
|
|
|
|
| 335 |
input_size_slider = gr.components.Slider(
|
| 336 |
minimum=512,
|
| 337 |
maximum=1024,
|
|
|
|
| 342 |
)
|
| 343 |
|
| 344 |
with gr.Blocks(css=css, title="Efficient SAM") as demo:
|
| 345 |
+
global_points = []
|
| 346 |
+
global_point_label = []
|
| 347 |
with gr.Row():
|
| 348 |
with gr.Column(scale=1):
|
| 349 |
# Title
|