Spaces:
Runtime error
Runtime error
Initial Commit
Browse files
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 =
|
| 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()
|