EdenSw commited on
Commit
1a4b133
·
1 Parent(s): 20f64f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from API import aud2text, Summarize
2
+ from moviepy.editor import *
3
+
4
+
5
+ def vid2aud(video_file):
6
+ video = VideoFileClip(video_file)
7
+ video.audio.write_audiofile("converted_Audio.mp3")
8
+ return "converted_Audio.mp3"
9
+
10
+
11
+ def main():
12
+ video = "TestVid1.mp4"
13
+ audio = vid2aud(video)
14
+ text = aud2text(audio)
15
+ # textfl = checkText(text["text"])
16
+ summary = Summarize(text["text"])
17
+ print(summary)
18
+
19
+
20
+ main()