Spaces:
Runtime error
Runtime error
debug
Browse files
examples/blobctrl/blobctrl_app.py
CHANGED
@@ -1504,7 +1504,17 @@ with block as demo:
|
|
1504 |
gr.Markdown("## **Step 1: Upload an image and click to segment the object**", show_label=False)
|
1505 |
|
1506 |
with gr.Row():
|
1507 |
-
input_image = gr.Image(type="numpy", label="input", scale=2, height=576, interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1508 |
|
1509 |
with gr.Row(elem_id="Seg"):
|
1510 |
undo_seg_button = gr.Button('🔙 Undo Seg', elem_id="undo_btnSEG", scale=1)
|
|
|
1504 |
gr.Markdown("## **Step 1: Upload an image and click to segment the object**", show_label=False)
|
1505 |
|
1506 |
with gr.Row():
|
1507 |
+
# input_image = gr.Image(type="numpy", label="input", scale=2, height=576, interactive=True)
|
1508 |
+
input_image = gr.ImageEditor(
|
1509 |
+
label="Input Image",
|
1510 |
+
type="numpy",
|
1511 |
+
brush=gr.Brush(colors=["#FFFFFF"], default_size = 30, color_mode="fixed"),
|
1512 |
+
layers = False,
|
1513 |
+
interactive=True,
|
1514 |
+
height=576,
|
1515 |
+
sources=["upload"],
|
1516 |
+
placeholder="Please click here to upload the image.",
|
1517 |
+
)
|
1518 |
|
1519 |
with gr.Row(elem_id="Seg"):
|
1520 |
undo_seg_button = gr.Button('🔙 Undo Seg', elem_id="undo_btnSEG", scale=1)
|