Created
May 4, 2019 17:08
-
-
Save att288/9444561738fd2b87966ee81b011a3b9b to your computer and use it in GitHub Desktop.
load_single_keras_django.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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