Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,12 @@ def vid2aud(video_file):
|
|
9 |
return "converted_Audio.mp3"
|
10 |
|
11 |
|
12 |
-
def
|
13 |
audio = vid2aud(vid_file)
|
14 |
text = aud2text(audio)
|
15 |
print(Summarize(text["text"]))
|
16 |
|
17 |
|
18 |
-
iface=gr.interface(fn=
|
19 |
iface.launch()
|
20 |
|
|
|
9 |
return "converted_Audio.mp3"
|
10 |
|
11 |
|
12 |
+
def Vid2Sum(vid_file):
|
13 |
audio = vid2aud(vid_file)
|
14 |
text = aud2text(audio)
|
15 |
print(Summarize(text["text"]))
|
16 |
|
17 |
|
18 |
+
iface=gr.interface(fn=Vid2Sum, inputs="mp4", outputs='text')
|
19 |
iface.launch()
|
20 |
|