Spaces:
Runtime error
Runtime error
Upload transcribe_videos.py
Browse files- transcribe_videos.py +1 -1
transcribe_videos.py
CHANGED
|
@@ -98,7 +98,7 @@ def transcribe_and_save(url, output_dir="output"):
|
|
| 98 |
"""
|
| 99 |
try:
|
| 100 |
# Download audio with yt-dlp
|
| 101 |
-
with yt_dlp.YoutubeDL({'format': 'bestaudio'}) as ydl:
|
| 102 |
info = ydl.extract_info(url, download=False)
|
| 103 |
audio_url = info['url']
|
| 104 |
|
|
|
|
| 98 |
"""
|
| 99 |
try:
|
| 100 |
# Download audio with yt-dlp
|
| 101 |
+
with yt_dlp.YoutubeDL({'format': 'bestaudio','cookiefile':'testcookie'}, ) as ydl:
|
| 102 |
info = ydl.extract_info(url, download=False)
|
| 103 |
audio_url = info['url']
|
| 104 |
|