drab commited on
Commit
068c7ac
1 Parent(s): ec8ec72

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -15,7 +15,7 @@ from PIL import Image
15
  class PreTrainedPipeline():
16
  def __init__(self, path: str):
17
  # load the model
18
- self.model = keras.models.load_model(os.path.join(path, "tf_model.h5"))
19
 
20
  def __call__(self, inputs: "Image.Image")-> List[Dict[str, Any]]:
21
 
 
15
  class PreTrainedPipeline():
16
  def __init__(self, path: str):
17
  # load the model
18
+ self.model = tf.saved_model.load('./saved_model')
19
 
20
  def __call__(self, inputs: "Image.Image")-> List[Dict[str, Any]]:
21