Spaces:
Runtime error
Runtime error
File size: 456 Bytes
43d0388 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from keras.models import model_from_json
import joblib
import librosa
def load_model():
# Load model architecture from JSON file
# with open('CNN_Raw.json', 'r') as json_file:
# loaded_model_json = json_file.read()
# loaded_model = model_from_json(loaded_model_json)
#
# # Load weights into the model
# loaded_model.load_weights("CNN_Raw.h5")
loaded_model = joblib.load('pipeline.joblib')
return loaded_model
|