Karthikeyan commited on
Commit
a2fa1ae
1 Parent(s): 8b51410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -45,7 +45,7 @@ class ResumeAnalyser:
45
  **Detailed Analysis:**
46
  the result should be in this format:
47
  Matched Percentage: [matching percentage].
48
- Reason : [list out Reason for why Matched Percentage].
49
  Skills To Improve : [Mention the skills How to improve and get 100 percentage this job description matching].
50
  Keywords : [matched key words from {job_description} and {resume}].
51
  """,
@@ -68,8 +68,9 @@ class ResumeAnalyser:
68
  result = generated_text
69
 
70
  lines = result.split('\n')
71
-
72
  matched_percentage = None
 
73
  reason = None
74
  skills_to_improve = None
75
  keywords = None
@@ -77,9 +78,9 @@ class ResumeAnalyser:
77
  for line in lines:
78
  if line.startswith('Matched Percentage:'):
79
  match = re.search(r"Matched Percentage: (\d+)%", line)
80
- print(match)
81
  if match:
82
  matched_percentage = int(match.group(1))
 
83
  elif line.startswith('Reason'):
84
  reason = line.split(':')[1].strip()
85
  elif line.startswith('Skills To Improve'):
 
45
  **Detailed Analysis:**
46
  the result should be in this format:
47
  Matched Percentage: [matching percentage].
48
+ Reason : [list out Reason Why this Resume Matched Percentage].
49
  Skills To Improve : [Mention the skills How to improve and get 100 percentage this job description matching].
50
  Keywords : [matched key words from {job_description} and {resume}].
51
  """,
 
68
  result = generated_text
69
 
70
  lines = result.split('\n')
71
+
72
  matched_percentage = None
73
+ matched_percentage_txt = None
74
  reason = None
75
  skills_to_improve = None
76
  keywords = None
 
78
  for line in lines:
79
  if line.startswith('Matched Percentage:'):
80
  match = re.search(r"Matched Percentage: (\d+)%", line)
 
81
  if match:
82
  matched_percentage = int(match.group(1))
83
+ matched_percentage_txt = (f"Matched Percentage: {matched_percentage}%")
84
  elif line.startswith('Reason'):
85
  reason = line.split(':')[1].strip()
86
  elif line.startswith('Skills To Improve'):