ProgramComputer commited on
Commit
efd7f5b
·
1 Parent(s): a451611

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -1
test.py CHANGED
@@ -340,7 +340,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
340
  if conf.startswith("audio"):
341
  info["audio"] = info["file"]
342
  if conf.startswith("video"):
343
- with fs.open(info["file"], 'r') as f:
344
  #buffer = BytesIO()
345
  #f.write(buffer)
346
  info["video"] = f.read()
 
340
  if conf.startswith("audio"):
341
  info["audio"] = info["file"]
342
  if conf.startswith("video"):
343
+ with fs.open(info["file"], 'rb') as f:
344
  #buffer = BytesIO()
345
  #f.write(buffer)
346
  info["video"] = f.read()