Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -57,7 +57,7 @@ def inference(link, upload):
|
|
57 |
yt = YouTube(link)
|
58 |
title = yt.title
|
59 |
path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
60 |
-
results = asr_pipe(
|
61 |
|
62 |
return results['text'], yt.title
|
63 |
|
|
|
57 |
yt = YouTube(link)
|
58 |
title = yt.title
|
59 |
path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
60 |
+
results = asr_pipe("audio.mp4")
|
61 |
|
62 |
return results['text'], yt.title
|
63 |
|