sumesh4C commited on
Commit
d480486
·
verified ·
1 Parent(s): cae897c

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. 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
  #--------------------------------------------------------------------------------------------