fffiloni commited on
Commit
71f8de2
1 Parent(s): d408c45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,11 +98,11 @@ def find_scenes(video_path, threshold):
98
  ret, frame = vid.read()
99
 
100
  # Save frame as PNG file
101
- img = (str(frame_id) + '_screenshot.png', 'shot ' + str(frame_id))
102
  cv2.imwrite(img,frame)
103
 
104
  # Push image into stills List
105
- stills.append(img)
106
 
107
  # Push the list of video shots into data_outputs for Gradio file component
108
  data_outputs.append(shots)
 
98
  ret, frame = vid.read()
99
 
100
  # Save frame as PNG file
101
+ img = str(frame_id) + '_screenshot.png'
102
  cv2.imwrite(img,frame)
103
 
104
  # Push image into stills List
105
+ stills.append((img, 'shot ' + str(frame_id)))
106
 
107
  # Push the list of video shots into data_outputs for Gradio file component
108
  data_outputs.append(shots)