Skip to content

Commit 2f9eb91

Browse files
committed
[CHANGE] name of audio directory from the <<audios>> to <<audio>>, update readme and predict script
1 parent c0da3eb commit 2f9eb91

File tree

10 files changed

+2
-2
lines changed

10 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
python3 predict_example.py path/to/custom/file.mp3
1414
or to test the model on our custom files, run
1515

16-
python3 predict_example.py audios/classical_music.mp3
16+
python3 predict_example.py audio/classical_music.mp3
1717

1818
### Audio features extracted
1919
* [MFCC](https://en.wikipedia.org/wiki/Mel-frequency_cepstrum)

predict_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_genre(model, music_path):
5050

5151

5252
if __name__ == "__main__":
53-
PATH = sys.argv[1] if len(sys.argv) == 2 else "./audios/classical_music.mp3"
53+
PATH = sys.argv[1] if len(sys.argv) == 2 else "./audio/classical_music.mp3"
5454
MODEL = load_model("./weights/model.json", "./weights/model_weights.h5")
5555
GENRE = get_genre(MODEL, PATH)
5656
print("Model predict: {}".format(GENRE))

0 commit comments

Comments
 (0)