Spaces:
Paused
Paused
Update sync_data.sh
Browse files- sync_data.sh +1 -1
sync_data.sh
CHANGED
|
@@ -24,7 +24,7 @@ sync_data() {
|
|
| 24 |
python3 -c "
|
| 25 |
from huggingface_hub import HfApi
|
| 26 |
import os
|
| 27 |
-
def manage_backups(api, repo_id, max_files=
|
| 28 |
files = api.list_repo_files(repo_id=repo_id, repo_type='dataset')
|
| 29 |
backup_files = [f for f in files if f.startswith('backup_') and f.endswith('.tar.gz')]
|
| 30 |
backup_files.sort()
|
|
|
|
| 24 |
python3 -c "
|
| 25 |
from huggingface_hub import HfApi
|
| 26 |
import os
|
| 27 |
+
def manage_backups(api, repo_id, max_files=24):
|
| 28 |
files = api.list_repo_files(repo_id=repo_id, repo_type='dataset')
|
| 29 |
backup_files = [f for f in files if f.startswith('backup_') and f.endswith('.tar.gz')]
|
| 30 |
backup_files.sort()
|