Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def read_video(video_path, video_interval):
|
|
43 |
vid_frames[frame_idx] = frame_image
|
44 |
|
45 |
# Save the frame as a .jpg file in the temporary folder
|
46 |
-
image_path = os.path.join(temp_dir
|
47 |
frame_image.save(image_path, format="JPEG")
|
48 |
|
49 |
# Append the image path to the list
|
|
|
43 |
vid_frames[frame_idx] = frame_image
|
44 |
|
45 |
# Save the frame as a .jpg file in the temporary folder
|
46 |
+
image_path = os.path.join(temp_dir, f"frame_{frame_idx:04d}.jpg")
|
47 |
frame_image.save(image_path, format="JPEG")
|
48 |
|
49 |
# Append the image path to the list
|