Nassira commited on
Commit
577a6a1
·
verified ·
1 Parent(s): 20c2461

Update cv_analyzer.py

Browse files
Files changed (1) hide show
  1. 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 json.dumps(result)
29
  except json.JSONDecodeError:
30
- return json.dumps({"present_sections": [], "score_sections": 0})
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')