afroanton commited on
Commit
1635b6d
1 Parent(s): 38fe3fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def transcribe(audio):
11
 
12
  def transcribeUrl(url):
13
  yt = YouTube(str(url))
14
- audio = yt.streams.filter(only_audio=True).first()
15
  text = pipe(audio)["text"]
16
  return text
17
 
 
11
 
12
  def transcribeUrl(url):
13
  yt = YouTube(str(url))
14
+ audio = yt.streams.filter(only_audio=True).first()[0].download('yt_video')
15
  text = pipe(audio)["text"]
16
  return text
17