Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -273,7 +273,7 @@ def loadurl(url):
|
|
273 |
def select_frame(evt: gr.SelectData):
|
274 |
global depth_selected
|
275 |
global frame_selected
|
276 |
-
if evt.index !=
|
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)
|
@@ -281,7 +281,7 @@ def select_frame(evt: gr.SelectData):
|
|
281 |
def select_depth(evt: gr.SelectData):
|
282 |
global frame_selected
|
283 |
global depth_selected
|
284 |
-
if evt.index !=
|
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)
|
|
|
273 |
def select_frame(evt: gr.SelectData):
|
274 |
global depth_selected
|
275 |
global frame_selected
|
276 |
+
if evt.index != frame_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)
|
|
|
281 |
def select_depth(evt: gr.SelectData):
|
282 |
global frame_selected
|
283 |
global depth_selected
|
284 |
+
if evt.index != depth_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)
|