Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,12 @@ from API import aud2text, Summarize
|
|
3 |
from moviepy.editor import *
|
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 ("Aloonnn")
|
13 |
|
14 |
# return sum_text[0]["summary_text"]
|
|
|
3 |
from moviepy.editor import *
|
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 ("Aloonnn")
|
13 |
|
14 |
# return sum_text[0]["summary_text"]
|