Spaces:
Running
Running
Breaking lines for visibility
#2
by
ariG23498
HF Staff
- opened
app/src/content/article.mdx
CHANGED
|
@@ -62,7 +62,11 @@ from datasets import load_dataset, get_dataset_config_names
|
|
| 62 |
|
| 63 |
# Get all subset names and load the first one
|
| 64 |
available_subsets = get_dataset_config_names('HuggingFaceM4/FineVision')
|
| 65 |
-
ds = load_dataset(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
# Inspect the first sample
|
| 68 |
ds[0]
|
|
|
|
| 62 |
|
| 63 |
# Get all subset names and load the first one
|
| 64 |
available_subsets = get_dataset_config_names('HuggingFaceM4/FineVision')
|
| 65 |
+
ds = load_dataset(
|
| 66 |
+
'HuggingFaceM4/FineVision',
|
| 67 |
+
name=available_subsets[0],
|
| 68 |
+
split='train', streaming=True,
|
| 69 |
+
)
|
| 70 |
|
| 71 |
# Inspect the first sample
|
| 72 |
ds[0]
|