Anushkabhat9 commited on
Commit
02f7cad
·
verified ·
1 Parent(s): dd800d2

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- # Display the similarity score on a slider
 
 
 
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