prithivMLmods commited on
Commit
7340c37
·
verified ·
1 Parent(s): a521c66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ def downsample_video(video_path: str) -> list[tuple[Image.Image, float]]:
85
  fps = vidcap.get(cv2.CAP_PROP_FPS)
86
  total_frames = int(vidcap.get(cv2.CAP_PROP_FRAME_COUNT))
87
 
88
- max_frames = 7
89
  if total_frames <= max_frames:
90
  indices = list(range(total_frames))
91
  else:
 
85
  fps = vidcap.get(cv2.CAP_PROP_FPS)
86
  total_frames = int(vidcap.get(cv2.CAP_PROP_FRAME_COUNT))
87
 
88
+ max_frames = 5
89
  if total_frames <= max_frames:
90
  indices = list(range(total_frames))
91
  else: