Spaces:
Sleeping
Sleeping
Update personal_information.py
Browse files- personal_information.py +4 -3
personal_information.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import json
|
2 |
import re
|
3 |
-
from
|
4 |
-
from ocr_extractor import process_file
|
5 |
from cv_prompt import get_personal_info_prompt
|
|
|
6 |
|
7 |
# Load the scoring data
|
8 |
with open('personal_info_scores.json', 'r') as f:
|
@@ -52,7 +52,8 @@ def calculate_score(email_exists, phone_exists, city_exists, country_exists):
|
|
52 |
return score
|
53 |
|
54 |
def analyze_personal_info(file_path):
|
55 |
-
|
|
|
56 |
|
57 |
email = extract_email(text)
|
58 |
phone = extract_phone(text)
|
|
|
1 |
import json
|
2 |
import re
|
3 |
+
from hf_utils import get_ai_response
|
|
|
4 |
from cv_prompt import get_personal_info_prompt
|
5 |
+
from cv_quality import CV
|
6 |
|
7 |
# Load the scoring data
|
8 |
with open('personal_info_scores.json', 'r') as f:
|
|
|
52 |
return score
|
53 |
|
54 |
def analyze_personal_info(file_path):
|
55 |
+
cv = CV(file_path)
|
56 |
+
text = cv.get_cv_text()
|
57 |
|
58 |
email = extract_email(text)
|
59 |
phone = extract_phone(text)
|