freealise commited on
Commit
27ae5d7
1 Parent(s): f80dbe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -271,12 +271,14 @@ def loadurl(url):
271
  return url
272
 
273
  def select_frame(evt: gr.SelectData):
 
274
  if evt.index != depth_selected:
275
  print(output_frame.selected_index)
276
  depth_selected = evt.index
277
  return gr.Gallery(selected_index=evt.index, preview=True)
278
 
279
  def select_depth(evt: gr.SelectData):
 
280
  if evt.index != frame_selected:
281
  print(output_depth.selected_index)
282
  frame_selected = evt.index
 
271
  return url
272
 
273
  def select_frame(evt: gr.SelectData):
274
+ global depth_selected
275
  if evt.index != depth_selected:
276
  print(output_frame.selected_index)
277
  depth_selected = evt.index
278
  return gr.Gallery(selected_index=evt.index, preview=True)
279
 
280
  def select_depth(evt: gr.SelectData):
281
+ global frame_selected
282
  if evt.index != frame_selected:
283
  print(output_depth.selected_index)
284
  frame_selected = evt.index