Update sections/03_create_dataset.md
Browse files
sections/03_create_dataset.md
CHANGED
|
@@ -40,18 +40,18 @@ See the help page on how to set up [security tokens](https://huggingface.co/docs
|
|
| 40 |
|
| 41 |
Steps to upload data
|
| 42 |
|
| 43 |
-
1. Create the dataset locally using `datasets.load_dataset(...
|
| 44 |
-
2. Call `datasets.push_to_hub(...
|
| 45 |
|
| 46 |
For example
|
| 47 |
|
| 48 |
-
import datasets
|
| 49 |
-
dataset
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
|
| 54 |
-
dataset.
|
| 55 |
|
| 56 |
***NOTE: Don't just drag-and-drop data, as it won't be possible to download the data remotely using datasets.load\_data(...)***
|
| 57 |
|
|
|
|
| 40 |
|
| 41 |
Steps to upload data
|
| 42 |
|
| 43 |
+
1. Create the dataset locally using `datasets.load_dataset(...)`
|
| 44 |
+
2. Call `datasets.push_to_hub(...)` to upload the data
|
| 45 |
|
| 46 |
For example
|
| 47 |
|
| 48 |
+
import datasets
|
| 49 |
+
dataset = datasets.load_dataset(
|
| 50 |
+
"csv",
|
| 51 |
+
data_files = "outcomes.csv",
|
| 52 |
+
keep_in_memory = True)
|
| 53 |
|
| 54 |
+
dataset.push_to_hub(repo_id = "`maomlab/example_dataset`")
|
| 55 |
|
| 56 |
***NOTE: Don't just drag-and-drop data, as it won't be possible to download the data remotely using datasets.load\_data(...)***
|
| 57 |
|