def model_from_json(json_string, custom_objects=None):
 import json
 from keras.utils.layer_utils import layer_from_config
 config = json.loads(json_string)
 return layer_from_config(config, custom_objects=custom_objects)

def model_from_json ( json_string , custom_objects = None ) : import json from keras . utils . layer_utils import layer_from_config config = json . loads ( json_string ) return layer_from_config ( config , custom_objects = custom_objects )
parses a json model configuration file and returns a model instance .