Update README.md (#10)
Browse files- Update README.md (1bc0106b9920fb3a0d35434b8e4e4a2d0190f5de)
Co-authored-by: speed <[email protected]>
README.md
CHANGED
@@ -6918,11 +6918,11 @@ More detail can be found in the blog post: https://huggingface.co/spaces/Hugging
|
|
6918 |
|
6919 |
### Load the data
|
6920 |
```python
|
6921 |
-
from datasets import load_dataset
|
6922 |
|
6923 |
# Get all subset names and load the first one
|
6924 |
available_subsets = get_dataset_config_names('HuggingFaceM4/FineVision')
|
6925 |
-
ds = load_dataset('HuggingFaceM4/FineVision', name=
|
6926 |
|
6927 |
# Inspect the first sample
|
6928 |
ds[0]
|
|
|
6918 |
|
6919 |
### Load the data
|
6920 |
```python
|
6921 |
+
from datasets import load_dataset, get_dataset_config_names
|
6922 |
|
6923 |
# Get all subset names and load the first one
|
6924 |
available_subsets = get_dataset_config_names('HuggingFaceM4/FineVision')
|
6925 |
+
ds = load_dataset('HuggingFaceM4/FineVision', name=available_subsets[0], split='train', streaming=True)
|
6926 |
|
6927 |
# Inspect the first sample
|
6928 |
ds[0]
|