climateset commited on
Commit
7132894
1 Parent(s): 749391e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -6
README.md CHANGED
@@ -4,16 +4,20 @@ tags:
4
  ---
5
  ## Download Instructions
6
 
7
- To download a folder individually, please use
8
-
9
- ```
10
- code snippet
11
- ```
12
 
13
  To download one file, please use
14
 
15
  ```
16
- code snippet
 
 
 
 
 
 
 
 
 
17
  ```
18
 
19
  To download the content of the whole repository, please use
 
4
  ---
5
  ## Download Instructions
6
 
 
 
 
 
 
7
 
8
  To download one file, please use
9
 
10
  ```
11
+ from huggingface_hub import hf_hub_download
12
+
13
+ # Path of the directory where the data will be downloaded in your local machine
14
+ local_directory = 'LOCAL_DIRECTORY'
15
+ # Relative path of the file in the repository
16
+ filepath = 'FILE_PATH'
17
+
18
+ repo_id = "climateset/causalpaca"
19
+ repo_type = "dataset"
20
+ hf_hub_download(repo_id=repo_id, filename=filepath, local_dir=local_directory, repo_type=repo_type, local_dir_use_symlinks=False)
21
  ```
22
 
23
  To download the content of the whole repository, please use