KurtLin commited on
Commit
92d8cf4
·
1 Parent(s): 84c9eb4

Initial Commit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 img_path, position
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, [], [img_source, 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
  # [