fffiloni commited on
Commit
40c8cf9
·
1 Parent(s): dc56c09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def find_scenes(video_path, threshold=27.0):
21
  shot_out = int(scene_list[0][1].get_frames())
22
  #print(shot_in, shot_out)
23
 
24
- video_out = ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="video_out.mp4")
25
 
26
- return scene_list, video_out
27
 
28
  video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
29
 
 
21
  shot_out = int(scene_list[0][1].get_frames())
22
  #print(shot_in, shot_out)
23
 
24
+ ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="video_out.mp4")
25
 
26
+ return scene_list, "video_out.mp4"
27
 
28
  video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
29