Skip to content

Commit

Permalink
Update processor.py
Browse files Browse the repository at this point in the history
`tarfile` may have error `AttributeError: '_Stream' object has no attribute 'seekable'`. This sytax will fix this error.
  • Loading branch information
happyjin authored Dec 26, 2024
1 parent b40747e commit 7872fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wespeaker/dataset/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def tar_file_and_group(data):
"""
for sample in data:
assert 'stream' in sample
stream = tarfile.open(fileobj=sample['stream'], mode="r|*")
stream = tarfile.open(fileobj=sample['stream'], mode="r:*")
prev_prefix = None
example = {}
valid = True
Expand Down

0 comments on commit 7872fdc

Please sign in to comment.