Update app.py
Browse files
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
|
| 16 |
|
| 17 |
model = load_model()
|
| 18 |
|
| 19 |
-
jd = st.text_area("
|
| 20 |
-
resume = st.text_area("
|
| 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)
|