jg583 commited on
Commit
f174fb1
1 Parent(s): f75becb

Update NSynth.py

Browse files

Removed 'id' variable as it is identical to 'note_str'; I didn't realize previously that I had added this variable myself. Regardless, there is no need for it.

Files changed (1) hide show
  1. NSynth.py +1 -2
NSynth.py CHANGED
@@ -85,8 +85,7 @@ class NSynth(datasets.GeneratorBasedBuilder):
85
  audio_filename = os.path.join(audio_path, filename)
86
  key = filename.replace('.wav', '')
87
  yield key, {
88
- "id": key,
89
- "note": examples[key]["note"],
90
  "note_str": examples[key]["note_str"],
91
  "instrument": examples[key]["instrument"],
92
  "instrument_str": examples[key]["instrument_str"],
 
85
  audio_filename = os.path.join(audio_path, filename)
86
  key = filename.replace('.wav', '')
87
  yield key, {
88
+ "note": key,
 
89
  "note_str": examples[key]["note_str"],
90
  "instrument": examples[key]["instrument"],
91
  "instrument_str": examples[key]["instrument_str"],