Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|