Spaces:
Runtime error
Runtime error
Commit ·
8bd8e0f
1
Parent(s): 9da8328
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,8 +54,10 @@ def match(CV,JD):
|
|
| 54 |
skillset_dict = create_skillset_dict(resume_names, resume_texts)
|
| 55 |
jd_skillset = create_skill_set(nlp(JD))
|
| 56 |
match_pairs = [match_skills(jd_skillset, skillset_dict, name) for name in skillset_dict.keys()]
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
| 59 |
|
| 60 |
exp=["Who is steve jobs?","What is coldplay?","What is a turing test?","What is the most interesting thing about our universe?","What are the most beautiful places on earth?"]
|
| 61 |
|
|
|
|
| 54 |
skillset_dict = create_skillset_dict(resume_names, resume_texts)
|
| 55 |
jd_skillset = create_skill_set(nlp(JD))
|
| 56 |
match_pairs = [match_skills(jd_skillset, skillset_dict, name) for name in skillset_dict.keys()]
|
| 57 |
+
if match_pairs:
|
| 58 |
+
return match_pairs[0][1]
|
| 59 |
+
else:
|
| 60 |
+
return "No matching skill set."
|
| 61 |
|
| 62 |
exp=["Who is steve jobs?","What is coldplay?","What is a turing test?","What is the most interesting thing about our universe?","What are the most beautiful places on earth?"]
|
| 63 |
|