salmanmapkar commited on
Commit
0350228
1 Parent(s): caa7ed7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  from __future__ import unicode_literals
2
  import youtube_dl
 
3
  from pydub import AudioSegment
4
  from pyannote.audio import Pipeline
5
  import re
@@ -268,7 +269,7 @@ def YoutubeTranscribe(NumberOfSpeakers=None, SpeakerNames="", URL="", retries =
268
  }],
269
  }
270
  try:
271
- with youtube_dl.YoutubeDL(ydl_opts) as ydl:
272
  ydl.download([URL])
273
  except:
274
  return YoutubeTranscribe(NumberOfSpeakers, SpeakerNames, URL, retries-1)
 
1
  from __future__ import unicode_literals
2
  import youtube_dl
3
+ import yt-dlp
4
  from pydub import AudioSegment
5
  from pyannote.audio import Pipeline
6
  import re
 
269
  }],
270
  }
271
  try:
272
+ with yt-dlp.YoutubeDL(ydl_opts) as ydl:
273
  ydl.download([URL])
274
  except:
275
  return YoutubeTranscribe(NumberOfSpeakers, SpeakerNames, URL, retries-1)