Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -225,10 +225,11 @@ def generate_valid_filename(query):
|
|
225 |
#################################################
|
226 |
import whisper
|
227 |
import time
|
228 |
-
from
|
229 |
-
import
|
230 |
|
231 |
-
|
|
|
232 |
yt = YouTube(url, on_progress_callback = on_progress)
|
233 |
ys = yt.streams.get_audio_only()
|
234 |
file = ys.download(mp3=True)
|
|
|
225 |
#################################################
|
226 |
import whisper
|
227 |
import time
|
228 |
+
from pytubefix import YouTube
|
229 |
+
from pytubefix.cli import on_progress
|
230 |
|
231 |
+
|
232 |
+
def download_video_mp3(url):
|
233 |
yt = YouTube(url, on_progress_callback = on_progress)
|
234 |
ys = yt.streams.get_audio_only()
|
235 |
file = ys.download(mp3=True)
|