sana123 commited on
Commit
edd9d35
1 Parent(s): 9940236

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def _return_yt_html_embed(yt_url):
51
 
52
 
53
  def yt_transcribe(yt_url, task):
54
- yt = pt.YouTube(yt_url)
55
  html_embed_str = _return_yt_html_embed(yt_url)
56
  stream = yt.streams.filter(only_audio=True)[0]
57
  stream.download(filename="audio.mp3")
 
51
 
52
 
53
  def yt_transcribe(yt_url, task):
54
+ yt = pt.YouTube(yt_url, use_oauth=True, allow_oauth_cache=True)
55
  html_embed_str = _return_yt_html_embed(yt_url)
56
  stream = yt.streams.filter(only_audio=True)[0]
57
  stream.download(filename="audio.mp3")