Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,9 @@ from moviepy.editor import *
|
|
4 |
|
5 |
def Vid2Sum(vid_file):
|
6 |
video = VideoFileClip(vid_file)
|
7 |
-
audio_file =
|
|
|
|
|
8 |
text = aud2text(audio_file)
|
9 |
sum_text=Summarize(text["text"])
|
10 |
return sum_text[0]["summary_text"]
|
|
|
4 |
|
5 |
def Vid2Sum(vid_file):
|
6 |
video = VideoFileClip(vid_file)
|
7 |
+
audio_file = "converted_audio.mp3"
|
8 |
+
video.audio.write_audiofile(audio_file)
|
9 |
+
|
10 |
text = aud2text(audio_file)
|
11 |
sum_text=Summarize(text["text"])
|
12 |
return sum_text[0]["summary_text"]
|