Ali Rabeh - staff
commited on
Commit
·
e5cde58
1
Parent(s):
30a46e3
edited README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
-
|
2 |
-
|
|
|
3 |
|
4 |
Below is an example of downloading a folder from our repository.
|
5 |
|
@@ -9,9 +10,13 @@ To run the example code, you need to install the following package:
|
|
9 |
|
10 |
```bash
|
11 |
pip install huggingface_hub
|
|
|
|
|
|
|
12 |
|
13 |
The following script demonstrates how to download a directory from the Hugging Face Hub:
|
14 |
|
|
|
15 |
from huggingface_hub import HfApi, hf_hub_download
|
16 |
import os
|
17 |
import shutil
|
@@ -39,5 +44,4 @@ for file in files_to_download:
|
|
39 |
|
40 |
print("Files downloaded successfully.")
|
41 |
|
42 |
-
|
43 |
-
---
|
|
|
1 |
+
# Example: Downloading a Folder from Our Repository
|
2 |
+
|
3 |
+
**License:** cc-by-nc-4.0
|
4 |
|
5 |
Below is an example of downloading a folder from our repository.
|
6 |
|
|
|
10 |
|
11 |
```bash
|
12 |
pip install huggingface_hub
|
13 |
+
```
|
14 |
+
|
15 |
+
## Example Code
|
16 |
|
17 |
The following script demonstrates how to download a directory from the Hugging Face Hub:
|
18 |
|
19 |
+
```python
|
20 |
from huggingface_hub import HfApi, hf_hub_download
|
21 |
import os
|
22 |
import shutil
|
|
|
44 |
|
45 |
print("Files downloaded successfully.")
|
46 |
|
47 |
+
```
|
|