freealise commited on
Commit
f80dbe2
1 Parent(s): 0f98e12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,6 +19,9 @@ from depth_anything.dpt import DepthAnything
19
  from depth_anything.util.transform import Resize, NormalizeImage, PrepareForNet
20
  from moviepy.editor import *
21
 
 
 
 
22
  def zip_files(files_in, files_out):
23
  with ZipFile("depth_result.zip", "w") as zipObj:
24
  for idx, file in enumerate(files_in):
@@ -267,9 +270,6 @@ def get_mesh(image, depth):
267
  def loadurl(url):
268
  return url
269
 
270
- frame_selected = 0
271
- depth_selected = 0
272
-
273
  def select_frame(evt: gr.SelectData):
274
  if evt.index != depth_selected:
275
  print(output_frame.selected_index)
 
19
  from depth_anything.util.transform import Resize, NormalizeImage, PrepareForNet
20
  from moviepy.editor import *
21
 
22
+ frame_selected = 0
23
+ depth_selected = 0
24
+
25
  def zip_files(files_in, files_out):
26
  with ZipFile("depth_result.zip", "w") as zipObj:
27
  for idx, file in enumerate(files_in):
 
270
  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)