Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def microphone_transcribe(audio):
|
|
9 |
return text
|
10 |
|
11 |
def youtube_transcribe(url):
|
12 |
-
|
13 |
|
14 |
stream = yt.streams.filter(only_audio=True)[0]
|
15 |
stream.download(filename="audio.mp3")
|
|
|
9 |
return text
|
10 |
|
11 |
def youtube_transcribe(url):
|
12 |
+
yt = pt.YouTube(url)
|
13 |
|
14 |
stream = yt.streams.filter(only_audio=True)[0]
|
15 |
stream.download(filename="audio.mp3")
|