Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -40,13 +40,14 @@ def process_resumes(job_description, uploaded_file):
|
|
40 |
|
41 |
table_data = [
|
42 |
[
|
43 |
-
candidate.get("applicant_name", extract_applicant_name(candidate["text"], candidate
|
44 |
-
candidate
|
45 |
f"{candidate['score']:.4f}",
|
46 |
candidate["summary"]
|
47 |
-
]
|
48 |
]
|
49 |
|
|
|
50 |
return "", table_data
|
51 |
|
52 |
|
|
|
40 |
|
41 |
table_data = [
|
42 |
[
|
43 |
+
candidate.get("applicant_name", extract_applicant_name(candidate["text"], candidate.get("name", "Unknown"))),
|
44 |
+
candidate.get("name", "Unknown"),
|
45 |
f"{candidate['score']:.4f}",
|
46 |
candidate["summary"]
|
47 |
+
] for candidate in results
|
48 |
]
|
49 |
|
50 |
+
|
51 |
return "", table_data
|
52 |
|
53 |
|