Unknown92 commited on
Commit
3736724
·
1 Parent(s): f0f41d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,16 +12,16 @@ def calculate_similarity(model, text1, text2):
12
  embedding2 = model.encode([text2])
13
  return cosine_similarity(embedding1, embedding2)[0][0]
14
 
15
- st.title("Resume Matcher")
16
 
17
  model = load_model()
18
 
19
- jd = st.text_area("Enter the Job Description:", height=200)
20
- resume = st.text_area("Enter the Resume:", height=200)
21
 
22
  if st.button("Calculate Match Score"):
23
  if jd and resume:
24
  score = calculate_similarity(model, jd, resume)
25
- st.write(f"The match score is: {score}")
26
  else:
27
- st.write("Please enter both the job description and resume.")
 
12
  embedding2 = model.encode([text2])
13
  return cosine_similarity(embedding1, embedding2)[0][0]
14
 
15
+ st.title("Resume Match Calculator")
16
 
17
  model = load_model()
18
 
19
+ jd = st.text_area("Paste the Job Description:", height=300)
20
+ resume = st.text_area("Paste Your the Resume:", height=300)
21
 
22
  if st.button("Calculate Match Score"):
23
  if jd and resume:
24
  score = calculate_similarity(model, jd, resume)
25
+ st.write(f"The match score is: {score}", height=300)
26
  else:
27
+ st.write("Please enter both the job description and resume.", height=300)