Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -80,7 +80,7 @@ def calculate_ats_match(resume_text: str, job_desc_text: str) -> tuple[float, li
|
|
| 80 |
emb_resume = embed(resume_text)
|
| 81 |
emb_job = embed(job_desc_text)
|
| 82 |
|
| 83 |
-
cosine_score = torch.nn.functional.cosine_similarity(emb_resume, emb_job).item()
|
| 84 |
ats_score = round(float(cosine_score) * 100, 2)
|
| 85 |
|
| 86 |
job_doc = nlp(job_desc_text.lower())
|
|
@@ -142,4 +142,4 @@ if st.button("๐ Analyze ATS Match Score"):
|
|
| 142 |
else:
|
| 143 |
st.success("Your resume covers all high-value concepts. Great job! ๐")
|
| 144 |
else:
|
| 145 |
-
st.warning("Please paste text into both the Resume and Job Description boxes.")
|
|
|
|
| 80 |
emb_resume = embed(resume_text)
|
| 81 |
emb_job = embed(job_desc_text)
|
| 82 |
|
| 83 |
+
cosine_score = torch.nn.functional.cosine_similarity(emb_resume, emb_job).cpu().item()
|
| 84 |
ats_score = round(float(cosine_score) * 100, 2)
|
| 85 |
|
| 86 |
job_doc = nlp(job_desc_text.lower())
|
|
|
|
| 142 |
else:
|
| 143 |
st.success("Your resume covers all high-value concepts. Great job! ๐")
|
| 144 |
else:
|
| 145 |
+
st.warning("Please paste text into both the Resume and Job Description boxes.")
|