You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hub/datasets-pandas.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ for image_path in (folder_path + df["file_name"]):
90
90
...
91
91
```
92
92
93
-
Since the dataset is in a supported structure (a `metadata.csv` file with a `file_name` field), you can save this dataset to Hugging Face and the Dataset Viewer shows both the metadata and images on Hugging Face.
93
+
Since the dataset is in a [supported structure](https://huggingface.co/docs/hub/en/datasets-image#additional-columns) (a `metadata.csv` or `.jsonl` file with a `file_name` field), you can save this dataset to Hugging Face and the Dataset Viewer shows both the metadata and images on Hugging Face.
94
94
95
95
```python
96
96
from huggingface_hub import HfApi
@@ -148,7 +148,7 @@ for audio_path in (folder_path + df["file_name"]):
148
148
...
149
149
```
150
150
151
-
Since the dataset is in a supported structure (a `metadata.csv` file with a `file_name` field), you can save it to Hugging Face, and the Hub Dataset Viewer shows both the metadata and audio.
151
+
Since the dataset is in a [supported structure](https://huggingface.co/docs/hub/en/datasets-audio#additional-columns) (a `metadata.csv` or `.jsonl` file with a `file_name` field), you can save it to Hugging Face, and the Hub Dataset Viewer shows both the metadata and audio.
152
152
153
153
```python
154
154
from huggingface_hub import HfApi
@@ -213,7 +213,9 @@ df[["label", "score"]] = [(y["label"], y["score"]) for y in pipe(x for x in tqdm
213
213
from transformers import pipeline
214
214
from tqdm import tqdm
215
215
216
-
p = pipeline("text-generation", model="Qwen/Qwen2.5-1.5B-Instruct")
0 commit comments