KELONMYOSA commited on
Commit
e5f2aa4
1 Parent(s): 20abcf3

loading script

Browse files
Files changed (1) hide show
  1. dusha_emotion_audio.py +4 -4
dusha_emotion_audio.py CHANGED
@@ -51,10 +51,10 @@ class Dusha(datasets.GeneratorBasedBuilder):
51
  next(csv_reader)
52
  for row in csv_reader:
53
  audio_path, label = row
54
- res = dict()
55
- res["file"] = audio_path
56
- res["label"] = label
57
- examples[audio_path] = res
58
 
59
  key = 0
60
  for path, f in audio_files:
 
51
  next(csv_reader)
52
  for row in csv_reader:
53
  audio_path, label = row
54
+ examples[audio_path] = {
55
+ "file": audio_path,
56
+ "label": label,
57
+ }
58
 
59
  key = 0
60
  for path, f in audio_files: