Datasets:
Languages:
English
Size:
10K - 100K
Update README.md
Browse files
README.md
CHANGED
@@ -118,18 +118,18 @@ pip install datasets
|
|
118 |
### 1. Using snapshot_download()
|
119 |
|
120 |
```python
|
121 |
-
|
122 |
|
123 |
dataset_name = "inductiva/windtunnel"
|
124 |
|
125 |
# Download the entire dataset
|
126 |
-
snapshot_download(repo_id=dataset_name, repo_type="dataset")
|
127 |
|
128 |
# Download to a specific local directory
|
129 |
-
snapshot_download(repo_id=dataset_name, repo_type="dataset", local_dir="local_folder")
|
130 |
|
131 |
# Download only the simulation metadata across all simulations
|
132 |
-
snapshot_download(
|
133 |
repo_id=dataset_name,
|
134 |
repo_type="dataset",
|
135 |
local_dir="local_folder",
|
@@ -140,10 +140,10 @@ snapshot_download(
|
|
140 |
### 2. Using load_dataset()
|
141 |
|
142 |
```python
|
143 |
-
|
144 |
|
145 |
# Load the dataset (streaming is supported)
|
146 |
-
dataset = load_dataset("inductiva/windtunnel", streaming=False)
|
147 |
|
148 |
# Display dataset information
|
149 |
print(dataset)
|
|
|
118 |
### 1. Using snapshot_download()
|
119 |
|
120 |
```python
|
121 |
+
import huggingface_hub
|
122 |
|
123 |
dataset_name = "inductiva/windtunnel"
|
124 |
|
125 |
# Download the entire dataset
|
126 |
+
huggingface_hub.snapshot_download(repo_id=dataset_name, repo_type="dataset")
|
127 |
|
128 |
# Download to a specific local directory
|
129 |
+
huggingface_hub.snapshot_download(repo_id=dataset_name, repo_type="dataset", local_dir="local_folder")
|
130 |
|
131 |
# Download only the simulation metadata across all simulations
|
132 |
+
huggingface_hub.snapshot_download(
|
133 |
repo_id=dataset_name,
|
134 |
repo_type="dataset",
|
135 |
local_dir="local_folder",
|
|
|
140 |
### 2. Using load_dataset()
|
141 |
|
142 |
```python
|
143 |
+
import datasets
|
144 |
|
145 |
# Load the dataset (streaming is supported)
|
146 |
+
dataset = datasets.load_dataset("inductiva/windtunnel", streaming=False)
|
147 |
|
148 |
# Display dataset information
|
149 |
print(dataset)
|