KELONMYOSA commited on
Commit
33bc90b
1 Parent(s): 866f96a

loading script

Browse files
Files changed (1) hide show
  1. dusha_emotion_audio.py +4 -3
dusha_emotion_audio.py CHANGED
@@ -58,6 +58,7 @@ class Dusha(datasets.GeneratorBasedBuilder):
58
 
59
  key = 0
60
  for path, f in audio_files:
61
- audio = {"path": path, "bytes": f.read()}
62
- yield key, {"audio": audio, "file": path}
63
- key += 1
 
 
58
 
59
  key = 0
60
  for path, f in audio_files:
61
+ if path in examples:
62
+ audio = {"path": path, "bytes": f.read()}
63
+ yield key, {**examples[path], "audio": audio}
64
+ key += 1