Skip to content

Instantly share code, notes, and snippets.

@att288
Created May 4, 2019 17:08
Show Gist options
  • Save att288/9444561738fd2b87966ee81b011a3b9b to your computer and use it in GitHub Desktop.
Save att288/9444561738fd2b87966ee81b011a3b9b to your computer and use it in GitHub Desktop.
load_single_keras_django.py
def _load_model_from_path(path):
global gGraph
global gModel
gGraph = tf.get_default_graph()
gModel = load_model(path) # keras function
_load_model_from_path('path_to_model')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment