Sampson2022 commited on
Commit
3db55d0
·
1 Parent(s): f454509

Update demo2.py

Browse files
Files changed (1) hide show
  1. demo2.py +3 -5
demo2.py CHANGED
@@ -49,8 +49,8 @@ _LICENSE = ""
49
  # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
50
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
51
  _URLS = {
52
- "train": "https://huggingface.co/datasets/Sampson2022/demo/raw/main/train.csv",
53
- "test": "https://huggingface.co/datasets/Sampson2022/demo/raw/main/test.csv",
54
  }
55
 
56
 
@@ -105,8 +105,7 @@ class DemoDataset(datasets.GeneratorBasedBuilder):
105
  datasets.SplitGenerator(
106
  name=datasets.Split.TRAIN,
107
  gen_kwargs={
108
- "filepath": download_files['train'],
109
- "split": "train"
110
  },
111
  ),
112
  datasets.SplitGenerator(
@@ -114,7 +113,6 @@ class DemoDataset(datasets.GeneratorBasedBuilder):
114
  # These kwargs will be passed to _generate_examples
115
  gen_kwargs={
116
  "filepath": download_files['test']
117
- "split": "test"
118
  },
119
  ),
120
  ]
 
49
  # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
50
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
51
  _URLS = {
52
+ "train": "https://huggingface.co/datasets/Sampson2022/demo2/raw/main/train.csv",
53
+ "test": "https://huggingface.co/datasets/Sampson2022/demo2/raw/main/test.csv",
54
  }
55
 
56
 
 
105
  datasets.SplitGenerator(
106
  name=datasets.Split.TRAIN,
107
  gen_kwargs={
108
+ "filepath": download_files['train']
 
109
  },
110
  ),
111
  datasets.SplitGenerator(
 
113
  # These kwargs will be passed to _generate_examples
114
  gen_kwargs={
115
  "filepath": download_files['test']
 
116
  },
117
  ),
118
  ]