MinghaoNing commited on
Commit
385584e
·
verified ·
1 Parent(s): a3f031c

Add Download Instructions

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -25,6 +25,22 @@ size_categories:
25
 
26
  ![DatasetExample.jpg](https://cdn-uploads.huggingface.co/production/uploads/6866f8a4985e9f14ccefffe5/LeurjkJvnrD-HfW_kfKFV.jpeg)
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  ## Extraction Instructions
30
  The archives are compressed using `zstd` for fast decompression. To extract the dataset, you need to have `zstd` installed. You can install it via package managers like `apt`, `brew`.
 
25
 
26
  ![DatasetExample.jpg](https://cdn-uploads.huggingface.co/production/uploads/6866f8a4985e9f14ccefffe5/LeurjkJvnrD-HfW_kfKFV.jpeg)
27
 
28
+ ## Download Instructions
29
+ **Use the huggingface_hub CLI or library**
30
+ ```bash
31
+ pip install huggingface_hub
32
+ ```bash
33
+
34
+ Create a python script, and run it:
35
+
36
+ ```python
37
+ from huggingface_hub import snapshot_download
38
+
39
+ path = snapshot_download(repo_id="MinghaoNing/CoInfra", repo_type="dataset")
40
+ print("Downloaded to:", path)
41
+ ```
42
+
43
+ This will download the full dataset repo (all files) to a local folder.
44
 
45
  ## Extraction Instructions
46
  The archives are compressed using `zstd` for fast decompression. To extract the dataset, you need to have `zstd` installed. You can install it via package managers like `apt`, `brew`.