Update app.py
Browse files
app.py
CHANGED
|
@@ -15,14 +15,15 @@ def calculate_similarity(model, text1, text2):
|
|
| 15 |
st.title("Resume Match Calculator")
|
| 16 |
|
| 17 |
model = load_model()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
jd = st.text_area("Paste the Job Description:", height=600)
|
| 20 |
-
resume = st.text_area("Paste Your the Resume:", height=600)
|
| 21 |
-
# Increase font size using st.markdown with HTML styling
|
| 22 |
-
st.markdown("<style>textarea{font-size:16px !important;}</style>", unsafe_allow_html=True)
|
| 23 |
if st.button("Calculate Match Score"):
|
| 24 |
if jd and resume:
|
| 25 |
score = calculate_similarity(model, jd, resume)
|
| 26 |
-
st.write(f"The match score is: {score}",
|
| 27 |
else:
|
| 28 |
-
st.write("Please enter both the job description and resume.",
|
|
|
|
| 15 |
st.title("Resume Match Calculator")
|
| 16 |
|
| 17 |
model = load_model()
|
| 18 |
+
# Set the font size for the "Paste the Job Description" text
|
| 19 |
+
st.markdown("<style>#fc1{font-size: 20px !important;}</style>", unsafe_allow_html=True)
|
| 20 |
+
|
| 21 |
+
jd = st.text_area("Paste the Job Description:", height=200)
|
| 22 |
+
resume = st.text_area("Paste Your the Resume:", height=200)
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
if st.button("Calculate Match Score"):
|
| 25 |
if jd and resume:
|
| 26 |
score = calculate_similarity(model, jd, resume)
|
| 27 |
+
st.write(f"The match score is: {score}", )
|
| 28 |
else:
|
| 29 |
+
st.write("Please enter both the job description and resume.", )
|