sofzcc commited on
Commit
fe6756f
1 Parent(s): a7c2258

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -225,10 +225,11 @@ def generate_valid_filename(query):
225
  #################################################
226
  import whisper
227
  import time
228
- from pytube import YouTube
229
- import yt_dlp
230
 
231
- def download_video_mp3(URL):
 
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)