hoangthan commited on
Commit
a134d0c
1 Parent(s): fd0d614

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -7,9 +7,9 @@ import pickle
7
  from PIL import Image
8
 
9
  class PreTrainedPipeline():
10
- def __init__(self, path="model"):
11
 
12
- self.model = keras.models.load_model(os.path.join(path, ""))
13
 
14
  self.word_to_index = tf.keras.layers.StringLookup(
15
  mask_token="",
 
7
  from PIL import Image
8
 
9
  class PreTrainedPipeline():
10
+ def __init__(self, path: str):
11
 
12
+ self.model = keras.models.load_model(os.path.join(path, "model"))
13
 
14
  self.word_to_index = tf.keras.layers.StringLookup(
15
  mask_token="",