J Z commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -186,7 +186,7 @@ async def download_videos():
|
|
| 186 |
try:
|
| 187 |
api = HfApi()
|
| 188 |
files = api.list_repo_files(repo_id=REPO_ID, repo_type="space")
|
| 189 |
-
vids = [f for f in files if f.startswith("app/
|
| 190 |
logger.info(f"Found {len(vids)} video files")
|
| 191 |
for vf in vids:
|
| 192 |
dest = VIDEOS_DIR / Path(vf).name
|
|
|
|
| 186 |
try:
|
| 187 |
api = HfApi()
|
| 188 |
files = api.list_repo_files(repo_id=REPO_ID, repo_type="space")
|
| 189 |
+
vids = [f for f in files if f.startswith("app/p2/") and f.endswith((".mp4",".webm",".mkv",".mov"))]
|
| 190 |
logger.info(f"Found {len(vids)} video files")
|
| 191 |
for vf in vids:
|
| 192 |
dest = VIDEOS_DIR / Path(vf).name
|