chris10 commited on
Commit
53644dc
1 Parent(s): b0c4a8c

updated edge cases

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ def get_frames(video_in, trim_in):
51
 
52
  def change_model(model_slider, eventframe_files, mesh_files):
53
  if mesh_files is None:
54
- return None, None
55
 
56
  if model_slider >= len(mesh_files):
57
  model_slider = len(mesh_files)
@@ -66,7 +66,7 @@ def change_model(model_slider, eventframe_files, mesh_files):
66
 
67
  def infer(video_inp, trim_in, threshold):
68
  if video_inp is None:
69
- return None, None, None
70
 
71
  frames, fps = get_frames(video_inp, trim_in)
72
  ts_s = 1 / fps
 
51
 
52
  def change_model(model_slider, eventframe_files, mesh_files):
53
  if mesh_files is None:
54
+ return None, None, None
55
 
56
  if model_slider >= len(mesh_files):
57
  model_slider = len(mesh_files)
 
66
 
67
  def infer(video_inp, trim_in, threshold):
68
  if video_inp is None:
69
+ return None, None, None, None
70
 
71
  frames, fps = get_frames(video_inp, trim_in)
72
  ts_s = 1 / fps