Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ whisper_model = whisper.load_model("base")
|
|
| 15 |
def download_audio(video_url):
|
| 16 |
"""Downloads audio from the YouTube video using yt-dlp with cookies."""
|
| 17 |
# Get the path to the cookies file from the current directory
|
| 18 |
-
cookies_file =
|
| 19 |
|
| 20 |
ydl_opts = {
|
| 21 |
'format': 'bestaudio/best',
|
|
|
|
| 15 |
def download_audio(video_url):
|
| 16 |
"""Downloads audio from the YouTube video using yt-dlp with cookies."""
|
| 17 |
# Get the path to the cookies file from the current directory
|
| 18 |
+
cookies_file = 'cookies.json'
|
| 19 |
|
| 20 |
ydl_opts = {
|
| 21 |
'format': 'bestaudio/best',
|