nthngdy commited on
Commit
14a761b
·
1 Parent(s): 9938b56

Update openwebtext_split.py

Browse files
Files changed (1) hide show
  1. openwebtext_split.py +1 -1
openwebtext_split.py CHANGED
@@ -57,7 +57,7 @@ def custom_iter_archive(path_or_buf, _filter=lambda x: True):
57
  if not file_path.endswith('xz'):
58
  continue
59
  file_obj = stream.extractfile(tarinfo)
60
- decompressed_file = decompressor.decompress(file_obj)
61
  print(type(decompressed_file))
62
  for j, xzinfo in enumerate(file_obj):
63
  yield j
 
57
  if not file_path.endswith('xz'):
58
  continue
59
  file_obj = stream.extractfile(tarinfo)
60
+ decompressed_file = decompressor.decompress(file_obj.read())
61
  print(type(decompressed_file))
62
  for j, xzinfo in enumerate(file_obj):
63
  yield j