Priyanka-Balivada commited on
Commit
857a266
1 Parent(s): 938ace2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -102,6 +102,12 @@ if resumes_files:
102
  job_descriptions_file = st.sidebar.file_uploader(
103
  "Upload Job Description PDF", type=["pdf"])
104
 
 
 
 
 
 
 
105
  if job_descriptions_file:
106
  nlp_model_path = "en_Resume_Matching_Keywords"
107
  nlp = spacy.load(nlp_model_path)
@@ -222,12 +228,6 @@ if resumes_files:
222
  model_resumes = train_doc2vec_model(tagged_resumes)
223
 
224
  st.subheader("\nHeatmap:")
225
-
226
- # Get skills keywords from user input
227
- skills_keywords_input = st.text_input(
228
- "Enter skills keywords separated by commas (e.g., python, java, machine learning):")
229
- skills_keywords = [skill.strip()
230
- for skill in skills_keywords_input.split(',') if skill.strip()]
231
 
232
  if skills_keywords:
233
  # Calculate the similarity score between each skill keyword and the resume text
 
102
  job_descriptions_file = st.sidebar.file_uploader(
103
  "Upload Job Description PDF", type=["pdf"])
104
 
105
+ # Get skills keywords from user input
106
+ skills_keywords_input = st.text_input(
107
+ "Enter skills keywords separated by commas (e.g., python, java, machine learning):")
108
+ skills_keywords = [skill.strip()
109
+ for skill in skills_keywords_input.split(',') if skill.strip()]
110
+
111
  if job_descriptions_file:
112
  nlp_model_path = "en_Resume_Matching_Keywords"
113
  nlp = spacy.load(nlp_model_path)
 
228
  model_resumes = train_doc2vec_model(tagged_resumes)
229
 
230
  st.subheader("\nHeatmap:")
 
 
 
 
 
 
231
 
232
  if skills_keywords:
233
  # Calculate the similarity score between each skill keyword and the resume text