moon23k commited on
Commit
a9d01b8
1 Parent(s): 1018f27

Update GenMix50k.py

Browse files
Files changed (1) hide show
  1. GenMix50k.py +2 -2
GenMix50k.py CHANGED
@@ -83,6 +83,6 @@ class GenMix50k(ds.GeneratorBasedBuilder):
83
 
84
  def _generate_examples(self, filepath):
85
  with open(filepath, encoding="utf-8") as f:
86
- for idx, line in enumerate(f):
87
- example = json.loads(line)
88
  yield idx, example
 
83
 
84
  def _generate_examples(self, filepath):
85
  with open(filepath, encoding="utf-8") as f:
86
+ data = json.load(f)
87
+ for idx, example in enumerate(data):
88
  yield idx, example