vitaliy-sharandin commited on
Commit
0657ec1
1 Parent(s): 6e91589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,8 +18,7 @@ DEEPL_TOKEN = os.environ["DEEPL_TOKEN"]
18
 
19
  # Download video from Youtube
20
  def download_youtube_video(url):
21
- yt = YouTube(url,
22
- use_oauth = True, allow_oauth_cache=True)
23
  stream = yt.streams.filter(file_extension='mp4').first()
24
  output_path = stream.download()
25
  return output_path
 
18
 
19
  # Download video from Youtube
20
  def download_youtube_video(url):
21
+ yt = YouTube(url)
 
22
  stream = yt.streams.filter(file_extension='mp4').first()
23
  output_path = stream.download()
24
  return output_path