CR7CAD commited on
Commit
7733908
·
verified ·
1 Parent(s): 8057156

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -383,6 +383,7 @@ def analyze_google_fit(resume_summary):
383
 
384
  # Apply final curve to keep scores in a realistic range
385
  match_percentage = min(92, max(35, int(weighted_score * 100)))
 
386
  # Get more specific information for a better prompt
387
  # Get top skills across all categories (up to 5 total)
388
  all_matching_skills = []
@@ -480,11 +481,10 @@ This candidate
480
  # Make sure percentages are consistent
481
  assessment = re.sub(r'\b\d{1,2}%\b', f"{match_percentage}%", assessment)
482
 
483
- # [Keep the return statement and rest of function the same]
484
 
485
  return assessment, match_percentage, category_details, execution_time
486
 
487
-
488
  def generate_expert_assessment(resume_summary, match_percentage, category_details, found_skills):
489
  """
490
  Generate a comprehensive expert assessment based on the resume analysis.
 
383
 
384
  # Apply final curve to keep scores in a realistic range
385
  match_percentage = min(92, max(35, int(weighted_score * 100)))
386
+
387
  # Get more specific information for a better prompt
388
  # Get top skills across all categories (up to 5 total)
389
  all_matching_skills = []
 
481
  # Make sure percentages are consistent
482
  assessment = re.sub(r'\b\d{1,2}%\b', f"{match_percentage}%", assessment)
483
 
484
+ execution_time = time.time() - start_time
485
 
486
  return assessment, match_percentage, category_details, execution_time
487
 
 
488
  def generate_expert_assessment(resume_summary, match_percentage, category_details, found_skills):
489
  """
490
  Generate a comprehensive expert assessment based on the resume analysis.