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

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -11,7 +11,7 @@ import numpy as np
11
  class PreTrainedPipeline():
12
  def __init__(self, path: str):
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])
 
11
  class PreTrainedPipeline():
12
  def __init__(self, path: str):
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])