Spaces:
Sleeping
Sleeping
Anushkabhat9
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,10 @@ if uploaded_resume is not None and uploaded_job_description is not None:
|
|
42 |
# Calculate the similarity score between resume and job description using similarity_main
|
43 |
similarity_score = similarity_main(resume_path, job_description_path)
|
44 |
|
45 |
-
|
|
|
|
|
|
|
46 |
st.write("Similarity Score:")
|
47 |
st.slider("Similarity", min_value=0, max_value=100, value=int(similarity_score), format="%d%%")
|
48 |
|
|
|
42 |
# Calculate the similarity score between resume and job description using similarity_main
|
43 |
similarity_score = similarity_main(resume_path, job_description_path)
|
44 |
|
45 |
+
if isinstance(similarity_score, str) and '%' in similarity_score:
|
46 |
+
similarity_score = float(similarity_score.replace('%', ''))
|
47 |
+
|
48 |
+
# Display the similarity score on a slider
|
49 |
st.write("Similarity Score:")
|
50 |
st.slider("Similarity", min_value=0, max_value=100, value=int(similarity_score), format="%d%%")
|
51 |
|