Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,7 @@ def text_to_speech(text,language):
|
|
34 |
|
35 |
def transcribe_video(URL):
|
36 |
video = YouTube(str(URL))
|
37 |
-
yt = video.streams.filter(only_audio=True).first()
|
38 |
-
yt.download('youtube_audio')
|
39 |
text = pipe(yt)["text"]
|
40 |
return text
|
41 |
|
|
|
34 |
|
35 |
def transcribe_video(URL):
|
36 |
video = YouTube(str(URL))
|
37 |
+
yt = video.streams.filter(only_audio=True).first().download('youtube_video')
|
|
|
38 |
text = pipe(yt)["text"]
|
39 |
return text
|
40 |
|