fffiloni commited on
Commit
d773a0f
1 Parent(s): 8ce7fdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,10 +12,10 @@ def find_scenes(video_path, threshold=27.0):
12
  ContentDetector(threshold=threshold))
13
  scene_manager.detect_scenes(video, show_progress=True)
14
  scene_list = scene_manager.get_scene_list()
15
- split_list = split_video_ffmpeg(video_path, scene_list, show_progress=True)
16
 
17
- return scene_list, split_list
18
 
19
  video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
20
 
21
- gr.Interface(fn=find_scenes, inputs=video_input, outputs=["json", "video"]).launch()
 
12
  ContentDetector(threshold=threshold))
13
  scene_manager.detect_scenes(video, show_progress=True)
14
  scene_list = scene_manager.get_scene_list()
15
+ split_video_ffmpeg(video_path, scene_list, show_progress=True)
16
 
17
+ return scene_list
18
 
19
  video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
20
 
21
+ gr.Interface(fn=find_scenes, inputs=video_input, outputs=["json").launch()