Spaces:
Running
Running
Update app.py
Browse files
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(
|
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:
|