Download baselines/Search-R1/scripts/upload.py from ryan-superman/selfevo-a100-evacuation: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/ryan-superman/selfevo-a100-evacuation/resolve/main/baselines/Search-R1/scripts/upload.py
- Command line
-
hf download hf://ryan-superman/selfevo-a100-evacuation/baselines/Search-R1/scripts/upload.py
-
curl -L -o upload.py https://huggingface.co/ryan-superman/selfevo-a100-evacuation/resolve/main/baselines/Search-R1/scripts/upload.py
395 Bytes
| import os | |
| from huggingface_hub import upload_file | |
| repo_id = "PeterJinGo/wiki-18-e5-index" | |
| path = "/home/peterjin/mnt/index/wiki-18" | |
| for file in ["part_aa", "part_ab"]: | |
| upload_file( | |
| path_or_fileobj=os.path.join(path, file), # File path | |
| path_in_repo=file, # Destination filename in the repo | |
| repo_id=repo_id, # Your dataset repo ID | |
| repo_type="dataset" | |
| ) | |