Spaces:
Sleeping
Sleeping
Update tasks/text.py
Browse files- tasks/text.py +1 -1
tasks/text.py
CHANGED
@@ -76,7 +76,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
76 |
|
77 |
|
78 |
# Make predictions using the loaded model
|
79 |
-
predictions = predict(test_dataset,os.path.join(current_dir,"tfidf_vectorizer_params.json"),os.path.join(current_dir,"tfidf_vectorizer_vocab.pkl"),os.path.join(current_dir,"random_forest_model.pkl"))
|
80 |
predictions = [LABEL_MAPPING[label] for label in predictions]
|
81 |
|
82 |
#--------------------------------------------------------------------------------------------
|
|
|
76 |
|
77 |
|
78 |
# Make predictions using the loaded model
|
79 |
+
predictions = predict(test_dataset,os.path.join(current_dir,"tfidf_vectorizer_params.json"),os.path.join(current_dir,"tfidf_vectorizer_vocab.pkl"),os.path.join(current_dir,"tfidf_vectorizer_idf.pkl"),os.path.join(current_dir,"random_forest_model.pkl"))
|
80 |
predictions = [LABEL_MAPPING[label] for label in predictions]
|
81 |
|
82 |
#--------------------------------------------------------------------------------------------
|