Spaces:
Sleeping
Sleeping
Update tasks/utils/predict.py
Browse files- tasks/utils/predict.py +1 -1
tasks/utils/predict.py
CHANGED
@@ -8,7 +8,7 @@ from tasks.utils.preprocessing import process_text
|
|
8 |
import json
|
9 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
10 |
|
11 |
-
def predict(input_df: pd.DataFrame,
|
12 |
"""
|
13 |
Predict the output using a saved TF-IDF vectorizer and Random Forest model.
|
14 |
|
|
|
8 |
import json
|
9 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
10 |
|
11 |
+
def predict(input_df: pd.DataFrame, tfidf_path:str , model_path: str):
|
12 |
"""
|
13 |
Predict the output using a saved TF-IDF vectorizer and Random Forest model.
|
14 |
|