Spaces:
Runtime error
Runtime error
sradc
commited on
Commit
•
44efe1c
1
Parent(s):
cd44e6d
create .gitignore file in video download folder
Browse files
pipeline/download_videos.py
CHANGED
@@ -17,7 +17,7 @@ def get_id(url: str) -> str:
|
|
17 |
|
18 |
def download_videos(video_ids: List[str]) -> None:
|
19 |
VIDEO_DIR.mkdir(exist_ok=True, parents=True)
|
20 |
-
(VIDEO_DIR / "gitignore").write_text("*")
|
21 |
for video_id in tqdm(video_ids):
|
22 |
video_url = f"https://www.youtube.com/watch?v={video_id}"
|
23 |
video_path = VIDEO_DIR / f"{video_id}.mp4"
|
|
|
17 |
|
18 |
def download_videos(video_ids: List[str]) -> None:
|
19 |
VIDEO_DIR.mkdir(exist_ok=True, parents=True)
|
20 |
+
(VIDEO_DIR / ".gitignore").write_text("*")
|
21 |
for video_id in tqdm(video_ids):
|
22 |
video_url = f"https://www.youtube.com/watch?v={video_id}"
|
23 |
video_path = VIDEO_DIR / f"{video_id}.mp4"
|