Spaces:
Runtime error
Runtime error
Fix playlist parsing (revert ft changes)
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import demucs.separate
|
|
| 8 |
|
| 9 |
os.makedirs("/home/user/.cache/torch/hub/checkpoints")
|
| 10 |
urllib.request.urlretrieve(
|
| 11 |
-
"https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/
|
| 12 |
"/home/user/.cache/torch/hub/checkpoints/955717e8-8726e21a.th"
|
| 13 |
)
|
| 14 |
|
|
@@ -39,7 +39,8 @@ def download_best_audio(url, outtmpl="%(id)s.%(ext)s"):
|
|
| 39 |
"outtmpl": outtmpl,
|
| 40 |
"progress_hooks": [progress_hook],
|
| 41 |
"quiet": True,
|
| 42 |
-
"cookiefile": "ytcookies.txt"
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
with YoutubeDL(ydl_opts) as ydl:
|
|
|
|
| 8 |
|
| 9 |
os.makedirs("/home/user/.cache/torch/hub/checkpoints")
|
| 10 |
urllib.request.urlretrieve(
|
| 11 |
+
"https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/955717e8-8726e21a.th",
|
| 12 |
"/home/user/.cache/torch/hub/checkpoints/955717e8-8726e21a.th"
|
| 13 |
)
|
| 14 |
|
|
|
|
| 39 |
"outtmpl": outtmpl,
|
| 40 |
"progress_hooks": [progress_hook],
|
| 41 |
"quiet": True,
|
| 42 |
+
"cookiefile": "ytcookies.txt",
|
| 43 |
+
"noplaylist": True,
|
| 44 |
}
|
| 45 |
|
| 46 |
with YoutubeDL(ydl_opts) as ydl:
|