fffiloni commited on
Commit
13d4a9a
·
verified ·
1 Parent(s): 27ab64e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.name, f"frame_{frame_idx:04d}.jpg")
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