Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from scenedetect.detectors import ContentDetector
|
|
8 |
|
9 |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
|
10 |
|
11 |
-
outputs = ["json", "file"]
|
12 |
data_outputs = []
|
13 |
|
14 |
|
@@ -66,7 +66,7 @@ def find_scenes(video_path, threshold=27.0):
|
|
66 |
print(stills)
|
67 |
#ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="cut.mp4")
|
68 |
|
69 |
-
return scene_list, shots
|
70 |
|
71 |
video_input=gr.Video(source="upload", format="mp4");
|
72 |
|
|
|
8 |
|
9 |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
|
10 |
|
11 |
+
outputs = ["json", "file", "gallery"]
|
12 |
data_outputs = []
|
13 |
|
14 |
|
|
|
66 |
print(stills)
|
67 |
#ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="cut.mp4")
|
68 |
|
69 |
+
return scene_list, shots, stills
|
70 |
|
71 |
video_input=gr.Video(source="upload", format="mp4");
|
72 |
|