Spaces:
Restarting
Restarting
Update app.py
Browse files
app.py
CHANGED
@@ -315,11 +315,11 @@ def loadurl(url):
|
|
315 |
def select_frame(v, evt: gr.SelectData):
|
316 |
global frame_selected
|
317 |
global masks
|
318 |
-
masks[frame_selected] = v
|
319 |
|
320 |
if evt.index != frame_selected:
|
|
|
321 |
frame_selected = evt.index
|
322 |
-
|
323 |
#print(v)
|
324 |
return v, frame_selected
|
325 |
|
|
|
315 |
def select_frame(v, evt: gr.SelectData):
|
316 |
global frame_selected
|
317 |
global masks
|
|
|
318 |
|
319 |
if evt.index != frame_selected:
|
320 |
+
masks[frame_selected] = v
|
321 |
frame_selected = evt.index
|
322 |
+
v = masks[frame_selected]
|
323 |
#print(v)
|
324 |
return v, frame_selected
|
325 |
|