frgfm
commited on
Commit
•
e75c387
1
Parent(s):
4d7ff1e
fix: Fixed encoding in JSON loading
Browse files- openfire.py +1 -1
openfire.py
CHANGED
@@ -79,7 +79,7 @@ class OpenFire(datasets.GeneratorBasedBuilder):
|
|
79 |
]
|
80 |
|
81 |
def _generate_examples(self, filepath, split):
|
82 |
-
with open(filepath, "rb"
|
83 |
urls = json.load(f)
|
84 |
idx = 0
|
85 |
for label in range(2):
|
|
|
79 |
]
|
80 |
|
81 |
def _generate_examples(self, filepath, split):
|
82 |
+
with open(filepath, "rb") as f:
|
83 |
urls = json.load(f)
|
84 |
idx = 0
|
85 |
for label in range(2):
|