freealise commited on
Commit
c755218
1 Parent(s): 72c7909

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- v = masks[frame_selected]
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