Spaces:
Sleeping
Sleeping
fix
Browse files- app/services/ranking.py +5 -0
app/services/ranking.py
CHANGED
|
@@ -58,7 +58,12 @@ def get_category_prediction(profile_text: str) -> str:
|
|
| 58 |
if not all([tfidf_vectorizer, le, rf_model]):
|
| 59 |
raise RuntimeError("Classification models are not properly loaded")
|
| 60 |
|
|
|
|
|
|
|
|
|
|
| 61 |
cleaned_text = clean_resume(profile_text)
|
|
|
|
|
|
|
| 62 |
|
| 63 |
cleaned_text = profile_text.lower()
|
| 64 |
vectorized_text = tfidf_vectorizer.transform([cleaned_text])
|
|
|
|
| 58 |
if not all([tfidf_vectorizer, le, rf_model]):
|
| 59 |
raise RuntimeError("Classification models are not properly loaded")
|
| 60 |
|
| 61 |
+
print("debug")
|
| 62 |
+
print(profile_text)
|
| 63 |
+
|
| 64 |
cleaned_text = clean_resume(profile_text)
|
| 65 |
+
print("cleaned text:")
|
| 66 |
+
print(cleaned_text)
|
| 67 |
|
| 68 |
cleaned_text = profile_text.lower()
|
| 69 |
vectorized_text = tfidf_vectorizer.transform([cleaned_text])
|