Datasets:
Fix: load function
Browse files- 2D-ATOMS.py +1 -1
2D-ATOMS.py
CHANGED
@@ -50,6 +50,6 @@ class TRIP(datasets.GeneratorBasedBuilder):
|
|
50 |
# load jsonl file
|
51 |
import json
|
52 |
with open(filepath) as f:
|
53 |
-
data =
|
54 |
for i, example in enumerate(data):
|
55 |
yield i, example
|
|
|
50 |
# load jsonl file
|
51 |
import json
|
52 |
with open(filepath) as f:
|
53 |
+
data = json.load(f)
|
54 |
for i, example in enumerate(data):
|
55 |
yield i, example
|