Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
11e3df3
1
Parent(s):
57b4950
fix
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ with block:
|
|
| 89 |
|
| 90 |
def on_everything_image_select(input_image, everything_image, masks, text, evt: gr.SelectData):
|
| 91 |
i = evt.index
|
| 92 |
-
mask = everything_image[
|
| 93 |
masks.append((mask, text))
|
| 94 |
anno = (input_image, masks)
|
| 95 |
return [masks, anno]
|
|
|
|
| 89 |
|
| 90 |
def on_everything_image_select(input_image, everything_image, masks, text, evt: gr.SelectData):
|
| 91 |
i = evt.index
|
| 92 |
+
mask = everything_image[1][i][0]
|
| 93 |
masks.append((mask, text))
|
| 94 |
anno = (input_image, masks)
|
| 95 |
return [masks, anno]
|