TusharNautiyal commited on
Commit
aaf214f
·
1 Parent(s): 5eeebc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def get_mfcc(audio_signal, num_mfcc=13, n_fft=2048, hop_length=512, num_segments
33
 
34
  def prediction(mfcc):
35
  # This function will provide us with prediction labels from our CNN model.
36
- cnn_model = keras.models.load_model('music-gen-classify-v1/')
37
  mfcc = np.array(mfcc)
38
  mfcc = mfcc[...,np.newaxis]
39
  prediction = cnn_model.predict(mfcc)
 
33
 
34
  def prediction(mfcc):
35
  # This function will provide us with prediction labels from our CNN model.
36
+ cnn_model = keras.models.load_model('music-gen-clasiify-v1.h5')
37
  mfcc = np.array(mfcc)
38
  mfcc = mfcc[...,np.newaxis]
39
  prediction = cnn_model.predict(mfcc)