freeja commited on
Commit
07e0344
1 Parent(s): 3a682a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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