salomonsky commited on
Commit
118d5b5
·
1 Parent(s): 03a10e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -10,6 +10,12 @@ from io import BytesIO
10
  from moviepy.video.io.VideoFileClip import VideoFileClip
11
  from moviepy.editor import vfx
12
 
 
 
 
 
 
 
13
  def random_cuts(video_file, title, num_cuts=1, duration=60, speed_factor=1.0, mute_audio=False, aspect_ratio='16:9'):
14
  clip = VideoFileClip(video_file)
15
 
 
10
  from moviepy.video.io.VideoFileClip import VideoFileClip
11
  from moviepy.editor import vfx
12
 
13
+ def session(info_list):
14
+ st.video(info_list[1])
15
+ st.text(f"Video Information: {info_list[0]}")
16
+ if len(info_list) == 5:
17
+ st.text(f"Duration: {info_list[3]} - {info_list[4]} seconds")
18
+
19
  def random_cuts(video_file, title, num_cuts=1, duration=60, speed_factor=1.0, mute_audio=False, aspect_ratio='16:9'):
20
  clip = VideoFileClip(video_file)
21