Update app.py
Browse files
app.py
CHANGED
|
@@ -40,24 +40,16 @@ resume = st.text_area("Paste Your the Resume:", height=100)
|
|
| 40 |
|
| 41 |
if st.button("Calculate Match Score"):
|
| 42 |
if jd and resume:
|
| 43 |
-
|
| 44 |
-
|
| 45 |
generate_wordcloud(' '.join(jp), 'Word Cloud for JD Keywords')
|
| 46 |
generate_wordcloud(' '.join(rp), 'Word Cloud for Resume Keywords')
|
| 47 |
|
|
|
|
| 48 |
# st.write(f"The match score is: {score}", )
|
| 49 |
st.write("The match score is:")
|
| 50 |
st.write(score)
|
| 51 |
|
| 52 |
-
else:
|
| 53 |
-
st.write("Please enter both the job description and resume.", )
|
| 54 |
-
|
| 55 |
-
if st.button("Identify Keywords"):
|
| 56 |
-
if jd and resume:
|
| 57 |
-
|
| 58 |
-
jp=kp.get_key_phrases(jd)
|
| 59 |
-
rp=kp.get_key_phrases(resume)
|
| 60 |
-
|
| 61 |
# Find missing keywords in rp with respect to jp
|
| 62 |
|
| 63 |
missing_keywords = set(jp) - set(rp)
|
|
|
|
| 40 |
|
| 41 |
if st.button("Calculate Match Score"):
|
| 42 |
if jd and resume:
|
| 43 |
+
|
| 44 |
+
# Generate word clouds for JD and Resume
|
| 45 |
generate_wordcloud(' '.join(jp), 'Word Cloud for JD Keywords')
|
| 46 |
generate_wordcloud(' '.join(rp), 'Word Cloud for Resume Keywords')
|
| 47 |
|
| 48 |
+
score = calculate_similarity(model, jd, resume)
|
| 49 |
# st.write(f"The match score is: {score}", )
|
| 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)
|