freealise commited on
Commit
7d30303
1 Parent(s): ce90dac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -313,6 +313,7 @@ def blur_image(image, depth, blur_data):
313
  def loadurl(url):
314
  return url
315
 
 
316
  def select_frame(v, evt: gr.SelectData):
317
  global frame_selected
318
  global masks
@@ -320,9 +321,8 @@ def select_frame(v, evt: gr.SelectData):
320
  if evt.index != frame_selected:
321
  masks[frame_selected] = v
322
  frame_selected = evt.index
323
- v = masks[frame_selected]
324
- print(v)
325
- return v, frame_selected
326
 
327
  def switch_rows(v):
328
  global frames
 
313
  def loadurl(url):
314
  return url
315
 
316
+
317
  def select_frame(v, evt: gr.SelectData):
318
  global frame_selected
319
  global masks
 
321
  if evt.index != frame_selected:
322
  masks[frame_selected] = v
323
  frame_selected = evt.index
324
+
325
+ return masks[frame_selected], frame_selected
 
326
 
327
  def switch_rows(v):
328
  global frames