BatuhanYilmaz
commited on
Commit
β’
ed98924
1
Parent(s):
f2e6af2
Update 01_π₯_Input_YouTube_Link.py
Browse files
01_π₯_Input_YouTube_Link.py
CHANGED
@@ -60,7 +60,7 @@ with col2:
|
|
60 |
|
61 |
|
62 |
def download_video(link):
|
63 |
-
yt = YouTube(link,
|
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,
|
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":
|