Spaces:
Sleeping
Sleeping
Update cv_analyzer.py
Browse files- cv_analyzer.py +2 -1
cv_analyzer.py
CHANGED
@@ -31,7 +31,7 @@ def analyze_cv(file_content):
|
|
31 |
personal_info = analyze_personal_info(temp_file_path)
|
32 |
|
33 |
# Spelling and Grammar Check
|
34 |
-
spelling_grammar_score = evaluate_cv_text(temp_file_path, 'ocr_weights.json')
|
35 |
|
36 |
# Section Detection
|
37 |
sections_prompt = get_section_detection_prompt(extracted_text)
|
@@ -63,6 +63,7 @@ def analyze_cv(file_content):
|
|
63 |
return {
|
64 |
"extracted_text": extracted_text,
|
65 |
"personal_info": personal_info,
|
|
|
66 |
"spelling_grammar_score": spelling_grammar_score,
|
67 |
"detected_sections": detected_sections,
|
68 |
"section_detection_score": section_detection_score,
|
|
|
31 |
personal_info = analyze_personal_info(temp_file_path)
|
32 |
|
33 |
# Spelling and Grammar Check
|
34 |
+
error_percentage, spelling_grammar_score = evaluate_cv_text(temp_file_path, 'ocr_weights.json')
|
35 |
|
36 |
# Section Detection
|
37 |
sections_prompt = get_section_detection_prompt(extracted_text)
|
|
|
63 |
return {
|
64 |
"extracted_text": extracted_text,
|
65 |
"personal_info": personal_info,
|
66 |
+
"spelling_grammar_error_percentage": error_percentage,
|
67 |
"spelling_grammar_score": spelling_grammar_score,
|
68 |
"detected_sections": detected_sections,
|
69 |
"section_detection_score": section_detection_score,
|