Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ def extract_frames(video_path, num_frames):
|
|
181 |
success, image = vidcap.read()
|
182 |
if success:
|
183 |
random_filename = f"{uuid.uuid4().hex}.jpg"
|
184 |
-
cv2.imwrite(random_filename, image)
|
185 |
frames.append(random_filename)
|
186 |
else:
|
187 |
break
|
|
|
181 |
success, image = vidcap.read()
|
182 |
if success:
|
183 |
random_filename = f"{uuid.uuid4().hex}.jpg"
|
184 |
+
cv2.imwrite('/tmp/gradio/' + random_filename, image)
|
185 |
frames.append(random_filename)
|
186 |
else:
|
187 |
break
|