Update app.py
Browse files
app.py
CHANGED
|
@@ -36,13 +36,13 @@ jd = st.text_area("Paste the Job Description:", height=100)
|
|
| 36 |
resume = st.text_area("Paste Your the Resume:", height=100)
|
| 37 |
|
| 38 |
|
| 39 |
-
if st.button("
|
| 40 |
if jd and resume:
|
| 41 |
-
|
| 42 |
jp=kp.get_key_phrases(jd)
|
| 43 |
-
rp=kp.get_key_phrases(resume)
|
|
|
|
| 44 |
# Generate word clouds for JD and Resume
|
| 45 |
-
generate_wordcloud(' '.join(jp), 'Word Cloud for
|
| 46 |
generate_wordcloud(' '.join(rp), 'Word Cloud for Resume Keywords')
|
| 47 |
|
| 48 |
score = calculate_similarity(model, jd, resume)
|
|
@@ -50,21 +50,10 @@ if st.button("START"):
|
|
| 50 |
st.write("The match score is:")
|
| 51 |
st.write(score)
|
| 52 |
|
| 53 |
-
# Find missing keywords in rp with respect to jp
|
| 54 |
-
|
| 55 |
-
missing_keywords = set(jp) - set(rp)
|
| 56 |
-
|
| 57 |
-
st.write("Keywords from Job Description:" )
|
| 58 |
-
st.write(jp)
|
| 59 |
-
|
| 60 |
-
st.write("Keywords from Resume:" )
|
| 61 |
-
st.write(rp)
|
| 62 |
-
|
| 63 |
-
st.write("Missing Keywords in Resume:" )
|
| 64 |
-
st.write(list(missing_keywords))
|
| 65 |
else:
|
| 66 |
st.write("Please enter both the job description and resume.", )
|
| 67 |
-
|
|
|
|
| 68 |
if jd and resume:
|
| 69 |
|
| 70 |
jp=kp.get_key_phrases(jd)
|
|
|
|
| 36 |
resume = st.text_area("Paste Your the Resume:", height=100)
|
| 37 |
|
| 38 |
|
| 39 |
+
if st.button("GET MATCH SCORE & WORD CLOUD"):
|
| 40 |
if jd and resume:
|
|
|
|
| 41 |
jp=kp.get_key_phrases(jd)
|
| 42 |
+
rp=kp.get_key_phrases(resume)
|
| 43 |
+
|
| 44 |
# Generate word clouds for JD and Resume
|
| 45 |
+
generate_wordcloud(' '.join(jp), 'Word Cloud for Job Description Keywords')
|
| 46 |
generate_wordcloud(' '.join(rp), 'Word Cloud for Resume Keywords')
|
| 47 |
|
| 48 |
score = calculate_similarity(model, jd, resume)
|
|
|
|
| 50 |
st.write("The match score is:")
|
| 51 |
st.write(score)
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
else:
|
| 54 |
st.write("Please enter both the job description and resume.", )
|
| 55 |
+
|
| 56 |
+
if st.button("GET KEYWORDS"):
|
| 57 |
if jd and resume:
|
| 58 |
|
| 59 |
jp=kp.get_key_phrases(jd)
|