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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -272,18 +272,20 @@ def loadurl(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
285
  return gr.Gallery(selected_index=evt.index, preview=True)
286
-
287
 
288
  css = """
289
  #img-display-container {
 
272
 
273
  def select_frame(evt: gr.SelectData):
274
  global depth_selected
275
+ global frame_selected
276
  if evt.index != depth_selected:
277
+ print(f'index: {evt.index}, d_s: {depth_selected}, f_s: {frame_selected}')
278
  depth_selected = evt.index
279
  return gr.Gallery(selected_index=evt.index, preview=True)
280
 
281
  def select_depth(evt: gr.SelectData):
282
  global frame_selected
283
+ global depth_selected
284
  if evt.index != frame_selected:
285
+ print(f'index: {evt.index}, f_s: {frame_selected}, d_s: {depth_selected}')
286
  frame_selected = evt.index
287
  return gr.Gallery(selected_index=evt.index, preview=True)
288
+
289
 
290
  css = """
291
  #img-display-container {