I created a model using Keras library and saved the model as .json and its weights with .h5 extension. How can I download this onto my local machine?
to save the model I
To download the model to the local system, the following code would work- Downloading json file:
model_json = model.to_json()
with open("model1.json","w") as json_file:
json_file.write(model_jason)
files.download("model1.json")
Downloading weights:
model.save('weights.h5')
files.download('weights.h5')