Update pipeline.py
Browse files- 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 =
|
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 |
|