ejqs commited on
Commit
e676bc1
·
1 Parent(s): 6f03371

Change to file name instead of candidate letter

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -610,14 +610,14 @@ def create_html_output(job_result: Dict, resume_results: List[Dict], filenames:
610
  # Add rows to summary table
611
  for resume_data in sorted_resumes:
612
  # Generate table row for each candidate
613
- candidate_letter = chr(65 + resume_data['index'] - 1) # Convert 1,2,3 to A,B,C
614
 
615
  # Create a single row per candidate
616
  html += "<tr>"
617
  # Job ID
618
  html += f"<td style='padding: 8px; border: 1px solid #ddd;'>{resume_data['job_id']}</td>"
619
  # Candidate
620
- html += f"<td style='padding: 8px; border: 1px solid #ddd;'>Candidate {candidate_letter}</td>"
621
  # Match Percentage
622
  html += f"<td style='padding: 8px; text-align: center; border: 1px solid #ddd;'>{resume_data['match_percentage']}%</td>"
623
 
 
610
  # Add rows to summary table
611
  for resume_data in sorted_resumes:
612
  # Generate table row for each candidate
613
+ file_name = resume_data['filename'] # Convert 1,2,3 to A,B,C
614
 
615
  # Create a single row per candidate
616
  html += "<tr>"
617
  # Job ID
618
  html += f"<td style='padding: 8px; border: 1px solid #ddd;'>{resume_data['job_id']}</td>"
619
  # Candidate
620
+ html += f"<td style='padding: 8px; border: 1px solid #ddd;'>{file_name}</td>"
621
  # Match Percentage
622
  html += f"<td style='padding: 8px; text-align: center; border: 1px solid #ddd;'>{resume_data['match_percentage']}%</td>"
623