Update cv_analyzer.py
Browse files- cv_analyzer.py +2 -2
cv_analyzer.py
CHANGED
|
@@ -25,9 +25,9 @@ def detect_cv_sections_and_score(text):
|
|
| 25 |
"present_sections": present_sections,
|
| 26 |
"score_sections": score_sections
|
| 27 |
}
|
| 28 |
-
return
|
| 29 |
except json.JSONDecodeError:
|
| 30 |
-
return
|
| 31 |
|
| 32 |
def analyze_cv(file_path):
|
| 33 |
text = process_file(file_path, 'ocr_weights.json')
|
|
|
|
| 25 |
"present_sections": present_sections,
|
| 26 |
"score_sections": score_sections
|
| 27 |
}
|
| 28 |
+
return result
|
| 29 |
except json.JSONDecodeError:
|
| 30 |
+
return {"present_sections": [], "score_sections": 0}
|
| 31 |
|
| 32 |
def analyze_cv(file_path):
|
| 33 |
text = process_file(file_path, 'ocr_weights.json')
|