Update GenMix50k.py
Browse files- 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 |
-
|
87 |
-
|
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
|