KELONMYOSA commited on
Commit
9f68c6f
1 Parent(s): f9d2f08

encoding csv

Browse files
Files changed (1) hide show
  1. dusha.py +1 -1
dusha.py CHANGED
@@ -46,7 +46,7 @@ class Dusha(datasets.GeneratorBasedBuilder):
46
  def _generate_examples(self, audio_files: Union[str, os.PathLike], metadata: str):
47
  examples = dict()
48
 
49
- with open(metadata, encoding="cp1251") as f:
50
  for row in f:
51
  data = row.split(",")
52
  audio_path = data[0]
 
46
  def _generate_examples(self, audio_files: Union[str, os.PathLike], metadata: str):
47
  examples = dict()
48
 
49
+ with open(metadata, encoding="utf-8") as f:
50
  for row in f:
51
  data = row.split(",")
52
  audio_path = data[0]