Unknown92 commited on
Commit
e8bc0f7
·
1 Parent(s): 798a22e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -47,8 +47,10 @@ if st.button("GET MATCH SCORE & WORD CLOUD"):
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
  else:
54
  st.write("Please enter both the job description and resume.", )
@@ -65,12 +67,15 @@ if st.button("GET KEYWORDS"):
65
  missing_keywords = set(jp) - set(rp)
66
 
67
  st.write("Keywords from Job Description:" )
68
- st.write(jp)
69
-
 
70
  st.write("Keywords from Resume:" )
71
- st.write(rp)
 
72
 
73
  st.write("Missing Keywords in Resume:" )
74
- st.write(list(missing_keywords))
 
75
  else:
76
  st.write("Please enter both the job description and resume.", )
 
47
 
48
  score = calculate_similarity(model, jd, resume)
49
  # st.write(f"The match score is: {score}", )
50
+ # Display the match score as a percentage
51
+ score_percentage = f"{score * 100:.2f}%"
52
  st.write("The match score is:")
53
+ st.write(score_percentage, key='match_score')
54
 
55
  else:
56
  st.write("Please enter both the job description and resume.", )
 
67
  missing_keywords = set(jp) - set(rp)
68
 
69
  st.write("Keywords from Job Description:" )
70
+ st.write('\n'.join([f"- {word}" for word in jp]), unsafe_allow_html=True, key='kw_jd') # Bulletized list with font size 10
71
+ st.write("\n")
72
+
73
  st.write("Keywords from Resume:" )
74
+ st.write('\n'.join([f"- {word}" for word in rp]), unsafe_allow_html=True, key='kw_resume') # Bulletized list with font size 10
75
+ st.write("\n")
76
 
77
  st.write("Missing Keywords in Resume:" )
78
+ st.write('\n'.join([f"- {word}" for word in missing_keywords]), unsafe_allow_html=True, key='kw_missing') # Bulletized list with font size 10
79
+
80
  else:
81
  st.write("Please enter both the job description and resume.", )