merve HF staff commited on
Commit
78460d0
·
1 Parent(s): 9694378

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -13,7 +13,7 @@ class PreTrainedPipeline():
13
  # load the model
14
  self.model = joblib.load((os.path.join(path, "pipeline.pkl"))
15
 
16
- def __call__(self, inputs: str) -> List[Dict[str, float]]:
17
  predictions = self.model.predict_proba([inputs])
18
  labels = []
19
  for cls in predictions[0]:
 
13
  # load the model
14
  self.model = joblib.load((os.path.join(path, "pipeline.pkl"))
15
 
16
+ def __call__(self, inputs: str):
17
  predictions = self.model.predict_proba([inputs])
18
  labels = []
19
  for cls in predictions[0]: