Update pipeline.py
Browse files- 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)
|
| 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]:
|