Change the function gr.Image to Gr.ImageEditor
Browse files
app.py
CHANGED
@@ -412,7 +412,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_lg)) as de
|
|
412 |
|
413 |
with gr.Tab("Clicks/Boxes") as click_tab:
|
414 |
# Update click_img to be interactive and use the selected tool
|
415 |
-
click_img = gr.
|
416 |
label="Input",
|
417 |
type='numpy',
|
418 |
value=default_example,
|
|
|
412 |
|
413 |
with gr.Tab("Clicks/Boxes") as click_tab:
|
414 |
# Update click_img to be interactive and use the selected tool
|
415 |
+
click_img = gr.ImageEditor(
|
416 |
label="Input",
|
417 |
type='numpy',
|
418 |
value=default_example,
|