billyxx commited on
Commit
c83d079
·
verified ·
1 Parent(s): 703050d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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["name"])),
44
- candidate["name"],
45
  f"{candidate['score']:.4f}",
46
  candidate["summary"]
47
- ] for candidate in results
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