fffiloni commited on
Commit
6ccedb0
1 Parent(s): 7977880

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ import cv2
9
 
10
  hf_token = os.environ.get("HF_TKN")
11
 
12
- def extract_firstframe():
13
- vidcap = cv2.VideoCapture('yourvideo.mp4') # replace yourvideo.mp4 with actual filename of your video
14
  success,image = vidcap.read()
15
  count = 0
16
  while success:
 
9
 
10
  hf_token = os.environ.get("HF_TKN")
11
 
12
+ def extract_firstframe(video_in):
13
+ vidcap = cv2.VideoCapture(video_in)
14
  success,image = vidcap.read()
15
  count = 0
16
  while success: