maom commited on
Commit
6d376c9
·
verified ·
1 Parent(s): 63e4b52

Update sections/03_create_dataset.md

Browse files
Files changed (1) hide show
  1. sections/03_create_dataset.md +8 -8
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(...`) 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
 
 
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