diff --git a/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md b/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md index 46d6c16..978c621 100644 --- a/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md +++ b/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md @@ -214,7 +214,7 @@ for audio_dir in audio_dirs: dataset_file = os.path.join(datasets_dir, os.path.basename(audio_dir.path) + '.npz') print(f'Processing audio sample {audio_dir.path}') - with AudioFile(audio_dir) as reader, \ + with AudioFile(audio_dir.audio_file, audio_dir.labels_file) as reader, \ DatasetWriter(dataset_file, low_freq=cutoff_frequencies[0], high_freq=cutoff_frequencies[1]) as writer: