avimittal30 commited on
Commit
6c5d253
·
1 Parent(s): ccb6a47

pushing final changes

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. helper.py +6 -6
app.py CHANGED
@@ -29,7 +29,7 @@ class JobDescriptionRequest(BaseModel):
29
  class ResumeResponse(BaseModel):
30
  top_resumes: List[str]
31
 
32
- # job_details={'Skills': ['Java', 'Python', 'C++', 'Document design processes', 'Development', 'Testing', 'Analytics', 'Troubleshooting', 'Rapid development cycles', 'Scripting', 'Test automation', 'Relational databases', 'ORM', 'SQL technologies', 'HTML5', 'CSS3', 'Content management systems', 'Web application development', 'Wicket', 'GWT', 'Spring MVC'], 'Experience': 6, 'Personality Traits': ['Desire to continue professional growth through training and education'], 'Education': ['B.E. Software Engineering', 'BE Software Engineering', 'Bachelors of Engineering Software Engineering', 'B.Tech Software Engineering', 'B.Tech. Software Engineering', 'BTech Software Engineering', 'Bachelor of Technology Software Engineering', 'B.E. Information Technology', 'BE Information Technology', 'Bachelors of Engineering Information Technology', 'B.Tech Information Technology', 'B.Tech. Information Technology', 'BTech Information Technology', 'Bachelor of Technology Information Technology']}
33
 
34
  @app.post("/candidate_recommendation/", response_model=ResumeResponse)
35
  def get_best_resumes(request: JobDescriptionRequest):
 
29
  class ResumeResponse(BaseModel):
30
  top_resumes: List[str]
31
 
32
+ #job_details={'Skills': ['Java', 'Python', 'C++', 'Document design processes', 'Development', 'Testing', 'Analytics', 'Troubleshooting', 'Rapid development cycles', 'Scripting', 'Test automation', 'Relational databases', 'ORM', 'SQL technologies', 'HTML5', 'CSS3', 'Content management systems', 'Web application development', 'Wicket', 'GWT', 'Spring MVC'], 'Experience': 6, 'Personality Traits': ['Desire to continue professional growth through training and education'], 'Education': ['B.E. Software Engineering', 'BE Software Engineering', 'Bachelors of Engineering Software Engineering', 'B.Tech Software Engineering', 'B.Tech. Software Engineering', 'BTech Software Engineering', 'Bachelor of Technology Software Engineering', 'B.E. Information Technology', 'BE Information Technology', 'Bachelors of Engineering Information Technology', 'B.Tech Information Technology', 'B.Tech. Information Technology', 'BTech Information Technology', 'Bachelor of Technology Information Technology']}
33
 
34
  @app.post("/candidate_recommendation/", response_model=ResumeResponse)
35
  def get_best_resumes(request: JobDescriptionRequest):
helper.py CHANGED
@@ -5,8 +5,8 @@ from fuzzywuzzy import process, fuzz
5
  from parse_job_description import extract_job_details
6
  from data import resumes_data
7
  import pandas as pd
8
- import multiprocessing as mp
9
- from functools import partial
10
 
11
  def extract_experience(text):
12
  # Patterns for identifying Bachelor's and Master's degrees
@@ -175,10 +175,10 @@ def get_scores_optimized(df, job_description):
175
  return pd.concat([df, scores_df], axis=1)
176
 
177
 
178
- import pandas as pd
179
- import multiprocessing as mp
180
- from functools import partial
181
- import time
182
 
183
  # First, ensure all the helper functions are defined at the module level
184
  # These are the functions called by scoring(): extract_skills, match_personality_traits,
 
5
  from parse_job_description import extract_job_details
6
  from data import resumes_data
7
  import pandas as pd
8
+ # import multiprocessing as mp
9
+ # from functools import partial
10
 
11
  def extract_experience(text):
12
  # Patterns for identifying Bachelor's and Master's degrees
 
175
  return pd.concat([df, scores_df], axis=1)
176
 
177
 
178
+ # import pandas as pd
179
+ # import multiprocessing as mp
180
+ # from functools import partial
181
+ # import time
182
 
183
  # First, ensure all the helper functions are defined at the module level
184
  # These are the functions called by scoring(): extract_skills, match_personality_traits,