Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -276,10 +276,12 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
276 |
input_image = gr.Image(
|
277 |
type="pil",
|
278 |
label="Upload Image",
|
279 |
-
tool="select",
|
280 |
height=400,
|
281 |
-
interactive=True
|
|
|
282 |
)
|
|
|
|
|
283 |
with gr.Row():
|
284 |
text_prompt = gr.Textbox(
|
285 |
label="Object to Extract",
|
@@ -335,6 +337,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
335 |
label="Draw Box Around Object",
|
336 |
interactive=True
|
337 |
)
|
|
|
|
|
338 |
box_btn = gr.Button(
|
339 |
"Extract Selection",
|
340 |
variant="primary",
|
|
|
276 |
input_image = gr.Image(
|
277 |
type="pil",
|
278 |
label="Upload Image",
|
|
|
279 |
height=400,
|
280 |
+
interactive=True,
|
281 |
+
sources=["upload", "clipboard"] # tool 대신 sources 사용
|
282 |
)
|
283 |
+
|
284 |
+
|
285 |
with gr.Row():
|
286 |
text_prompt = gr.Textbox(
|
287 |
label="Object to Extract",
|
|
|
337 |
label="Draw Box Around Object",
|
338 |
interactive=True
|
339 |
)
|
340 |
+
|
341 |
+
|
342 |
box_btn = gr.Button(
|
343 |
"Extract Selection",
|
344 |
variant="primary",
|