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

updating endpoint from localhost to huggingface url

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. requirements.txt +0 -0
  3. static/index.html +1 -1
app.py CHANGED
@@ -29,12 +29,12 @@ 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):
36
  job_description = request.job_description
37
- job_details = extract_job_details(job_description)
38
  start_time=datetime.now()
39
  df = calculate_final_score(resumes_data(), job_details)
40
  end_time=datetime.now()
 
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):
36
  job_description = request.job_description
37
+ # job_details = extract_job_details(job_description)
38
  start_time=datetime.now()
39
  df = calculate_final_score(resumes_data(), job_details)
40
  end_time=datetime.now()
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
 
static/index.html CHANGED
@@ -71,7 +71,7 @@
71
  resumesDiv.innerHTML = "Loading...";
72
 
73
  try {
74
- const response = await fetch("http://localhost:8000/candidate_recommendation/", { // ✅ Keep the trailing slash
75
  method: "POST",
76
  headers: { "Content-Type": "application/json" },
77
  body: JSON.stringify({ job_description: jobDescription })
 
71
  resumesDiv.innerHTML = "Loading...";
72
 
73
  try {
74
+ const response = await fetch("http://avimittal30/candidate-recommender/candidate_recommendation/", { // ✅ Keep the trailing slash
75
  method: "POST",
76
  headers: { "Content-Type": "application/json" },
77
  body: JSON.stringify({ job_description: jobDescription })