Spaces:
Running
Running
from keras.models import Model,model_from_json | |
json_file = open("model.json",'r') | |
loaded_model_json = json_file.read() | |
json_file.close() | |
loaded_model = model_from_json(loaded_model_json) | |
loaded_model.load_weights("model.h5") | |
print("cargado el modelo en el disco") | |
loaded_model.compile(loss='mean_squared_error',optimizer='adam',metrics='binary_accuracy') | |
X0 = 0 | |
X1 = 0 | |
XX = [[X0,X1]] | |
print(loaded_model.predict(XX).round()) |