fffiloni commited on
Commit
2abe17e
1 Parent(s): f035fb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ def find_scenes(video_path, threshold=27.0):
27
  # ffmpeg_extract_subclip("full.mp4", start_seconds, end_seconds, targetname="cut.mp4")
28
  ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="cut.mp4")
29
  #print(output_video_path)
30
- return scene_list, ["cut.mp4", "cut.mp4"]
31
 
32
- video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
33
 
34
  gr.Interface(fn=find_scenes, inputs=video_input, outputs=["json", "video"]).launch()
 
27
  # ffmpeg_extract_subclip("full.mp4", start_seconds, end_seconds, targetname="cut.mp4")
28
  ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="cut.mp4")
29
  #print(output_video_path)
30
+ return scene_list, "cut.mp4"
31
 
32
+ video_input=gr.Video(source="upload", format="mp4");
33
 
34
  gr.Interface(fn=find_scenes, inputs=video_input, outputs=["json", "video"]).launch()