fffiloni commited on
Commit
39ff4a4
1 Parent(s): 63c362f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,9 +26,9 @@ Please note that the following list of image descriptions (visual details) was o
26
  Audio events are actually the entire scene description based only on the audio of the video. Your job is to integrate these multimodal inputs intelligently and provide a very short resume about what is happening in the origin video. Provide a succinct overview of what you understood.
27
  """
28
 
29
- def trim_video(input_path, output_path, max_duration=10):
30
  video_clip = VideoFileClip(input_path)
31
-
32
  if video_clip.duration > max_duration:
33
  trimmed_clip = video_clip.subclip(0, max_duration)
34
  trimmed_clip.write_videofile(output_path, audio_codec='aac')
 
26
  Audio events are actually the entire scene description based only on the audio of the video. Your job is to integrate these multimodal inputs intelligently and provide a very short resume about what is happening in the origin video. Provide a succinct overview of what you understood.
27
  """
28
 
29
+ def trim_video(input_path, max_duration=10):
30
  video_clip = VideoFileClip(input_path)
31
+ output_path = "video_cut_10.mp4"
32
  if video_clip.duration > max_duration:
33
  trimmed_clip = video_clip.subclip(0, max_duration)
34
  trimmed_clip.write_videofile(output_path, audio_codec='aac')