Update README.md
Browse files
README.md
CHANGED
@@ -30,14 +30,14 @@ To download the datataset, run:
|
|
30 |
```python
|
31 |
# download the full dataset
|
32 |
from huggingface_hub import snapshot_download
|
33 |
-
snapshot_download(repo_id="osv5m/osv5m", local_dir="datasets/
|
34 |
```
|
35 |
|
36 |
and finally extract:
|
37 |
```python
|
38 |
import os
|
39 |
import zipfile
|
40 |
-
for root, dirs, files in os.walk("datasets/
|
41 |
for file in files:
|
42 |
if file.endswith(".zip"):
|
43 |
with zipfile.ZipFile(os.path.join(root, file), 'r') as zip_ref:
|
|
|
30 |
```python
|
31 |
# download the full dataset
|
32 |
from huggingface_hub import snapshot_download
|
33 |
+
snapshot_download(repo_id="osv5m/osv5m", local_dir="datasets/osv5m", repo_type='dataset')
|
34 |
```
|
35 |
|
36 |
and finally extract:
|
37 |
```python
|
38 |
import os
|
39 |
import zipfile
|
40 |
+
for root, dirs, files in os.walk("datasets/osv5m"):
|
41 |
for file in files:
|
42 |
if file.endswith(".zip"):
|
43 |
with zipfile.ZipFile(os.path.join(root, file), 'r') as zip_ref:
|