EduardoPacheco commited on
Commit
bb80211
1 Parent(s): 2e8452c

Limited to 120 frames and modified example to is_larger

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def app_fn(
19
  frames = utils.load_video_frames(source_video)
20
  processed_frames = utils.process_video(
21
  model=model,
22
- video=frames[:100],
23
  batch_size=batch_size,
24
  threshold=threshold,
25
  n_patches=n_patches,
@@ -53,7 +53,7 @@ if __name__ == "__main__":
53
  )
54
  examples = gr.Examples(
55
  examples=[
56
- ["assets/dog-running.mp4", 30, 0.5, 40, True, True],
57
  ],
58
  inputs=[source_video, batch_size, threshold, n_patches, is_larger, interpolate],
59
  outputs=[output_video],
 
19
  frames = utils.load_video_frames(source_video)
20
  processed_frames = utils.process_video(
21
  model=model,
22
+ video=frames[:120],
23
  batch_size=batch_size,
24
  threshold=threshold,
25
  n_patches=n_patches,
 
53
  )
54
  examples = gr.Examples(
55
  examples=[
56
+ ["assets/dog-running.mp4", 30, 0.5, 40, False, True],
57
  ],
58
  inputs=[source_video, batch_size, threshold, n_patches, is_larger, interpolate],
59
  outputs=[output_video],