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