Spaces:
Runtime error
Runtime error
Initial Commit
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import gradio as gr
|
|
| 7 |
|
| 8 |
def get_select_coords(evt: gr.SelectData):
|
| 9 |
position = (evt.index[0], evt.index[1])
|
| 10 |
-
return
|
| 11 |
|
| 12 |
my_app = gr.Blocks()
|
| 13 |
with my_app:
|
|
@@ -21,7 +21,7 @@ with my_app:
|
|
| 21 |
# img_output = gr.Image(label="Output Mask")
|
| 22 |
coords = gr.Label(label="Image Coordinate.")
|
| 23 |
|
| 24 |
-
img_source.select(get_select_coords, [],
|
| 25 |
# set_point.click(
|
| 26 |
# img_source.select(get_coord),
|
| 27 |
# [
|
|
|
|
| 7 |
|
| 8 |
def get_select_coords(evt: gr.SelectData):
|
| 9 |
position = (evt.index[0], evt.index[1])
|
| 10 |
+
return position
|
| 11 |
|
| 12 |
my_app = gr.Blocks()
|
| 13 |
with my_app:
|
|
|
|
| 21 |
# img_output = gr.Image(label="Output Mask")
|
| 22 |
coords = gr.Label(label="Image Coordinate.")
|
| 23 |
|
| 24 |
+
img_source.select(get_select_coords, [], coords)
|
| 25 |
# set_point.click(
|
| 26 |
# img_source.select(get_coord),
|
| 27 |
# [
|