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

Initial Commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from preprocess import show_mask, show_points, show_box
6
  import gradio as gr
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()
 
6
  import gradio as gr
7
 
8
  def get_select_coords(evt: gr.SelectData):
9
+ position = f"[{evt.index[0]}, {evt.index[1]}]"
10
  return position
11
 
12
  my_app = gr.Blocks()