drab commited on
Commit
d2812b8
1 Parent(s): 2e69dbe

Update pipeline.py

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