sdafd commited on
Commit
d14316c
·
verified ·
1 Parent(s): 61db6d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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