Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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"
|
|
|
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()
|