BatuhanYilmaz commited on
Commit
ed98924
β€’
1 Parent(s): f2e6af2

Update 01_πŸŽ₯_Input_YouTube_Link.py

Browse files
Files changed (1) hide show
  1. 01_πŸŽ₯_Input_YouTube_Link.py +2 -2
01_πŸŽ₯_Input_YouTube_Link.py CHANGED
@@ -60,7 +60,7 @@ with col2:
60
 
61
 
62
  def download_video(link):
63
- yt = YouTube(link, use_oauth=True, on_progress_callback=on_progress)
64
  ys = yt.streams.get_highest_resolution()
65
  video = ys.download(filename=f"{save_dir}/youtube_video.mp4")
66
  return video
@@ -79,7 +79,7 @@ def change_model(current_size, size):
79
 
80
 
81
  def inference(link, loaded_model, task):
82
- yt = YouTube(link, use_oauth=True, on_progress_callback=on_progress)
83
  ys = yt.streams.get_audio_only()
84
  path = ys.download(filename=f"{save_dir}/audio.mp3", mp3=True)
85
  if task == "Transcribe":
 
60
 
61
 
62
  def download_video(link):
63
+ yt = YouTube(link, on_progress_callback=on_progress)
64
  ys = yt.streams.get_highest_resolution()
65
  video = ys.download(filename=f"{save_dir}/youtube_video.mp4")
66
  return video
 
79
 
80
 
81
  def inference(link, loaded_model, task):
82
+ yt = YouTube(link, on_progress_callback=on_progress)
83
  ys = yt.streams.get_audio_only()
84
  path = ys.download(filename=f"{save_dir}/audio.mp3", mp3=True)
85
  if task == "Transcribe":