Spaces:
Sleeping
Sleeping
Upload hf_sync.py with huggingface_hub
Browse files- hf_sync.py +1 -1
hf_sync.py
CHANGED
|
@@ -29,7 +29,7 @@ def download():
|
|
| 29 |
print(f"Downloading data from {REPO_ID}...")
|
| 30 |
# hf download REPO_ID --repo-type dataset --local-dir data_repo
|
| 31 |
# Using --local-dir-use-symlinks False to avoid issues in some environments
|
| 32 |
-
success = run_command(["hf", "download", REPO_ID, "--repo-type", "dataset", "--local-dir", "data_repo",
|
| 33 |
if success:
|
| 34 |
print("Download successful.")
|
| 35 |
else:
|
|
|
|
| 29 |
print(f"Downloading data from {REPO_ID}...")
|
| 30 |
# hf download REPO_ID --repo-type dataset --local-dir data_repo
|
| 31 |
# Using --local-dir-use-symlinks False to avoid issues in some environments
|
| 32 |
+
success = run_command(["hf", "download", REPO_ID, "--repo-type", "dataset", "--local-dir", "data_repo", ])
|
| 33 |
if success:
|
| 34 |
print("Download successful.")
|
| 35 |
else:
|