Vaibhav84 commited on
Commit
441368b
·
1 Parent(s): bcb8c9b
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -95,10 +95,11 @@ def uploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf")
95
  returnID = UploadOpenFile.uploadFile(text,FileName,db_params)
96
  returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID)
97
  details = returnSkills.split('@')
98
- responseData = 'Required Skills : ' + details[0] +'<br><br>'
99
- responseData = responseData + 'Soft Skills : ' + details[1] +'<br><br>'
100
- responseData = responseData + 'Good to have Skills : ' + details[2]
101
- return {"SkillDetails": responseData}
 
102
  @app.get("/AllProfileMatchResults")
103
  def ProfileMatchResults():
104
  dbQuery = "select * from profilematch"
 
95
  returnID = UploadOpenFile.uploadFile(text,FileName,db_params)
96
  returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID)
97
  details = returnSkills.split('@')
98
+ responseData = 'Required Skills : ' + details[0]
99
+ responseData = responseData + 'Soft Skills : ' + details[1]
100
+
101
+ responseData = responseData + 'Good to have Skills : ' + details[2]
102
+ return {JSONResponse(content={"Required Skills":details[0] , "Soft Skills":details[1] , "Good to have Skills" : details[1]})}
103
  @app.get("/AllProfileMatchResults")
104
  def ProfileMatchResults():
105
  dbQuery = "select * from profilematch"