Vaibhav84 commited on
Commit
b6d0d6c
·
1 Parent(s): 07479a9
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -73,7 +73,7 @@ def parse_csv(df):
73
 
74
 
75
  @app.post("/uploadJobDescription/")
76
- def uploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf",test: SkillData = SkillData):
77
  # Save file locally for processing
78
  text =''
79
  print(text)
@@ -93,11 +93,10 @@ def uploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf",
93
  returnID = UploadOpenFile.uploadFile(text,FileName,db_params)
94
  returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID)
95
  details = returnSkills.split('@')
96
- #skill_data.requiredSkills = details[0]
97
- #skill_data.softSkills = details[1]
98
- #skill_data.goodToHaveSkills = details[1]
99
- # Process saved file
100
- return {"content": test.filename}
101
  @app.get("/ProfileMatch")
102
  def ProfileMatchResults():
103
  dbQuery = "select * from profilematch"
 
73
 
74
 
75
  @app.post("/uploadJobDescription/")
76
+ def uploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf"):
77
  # Save file locally for processing
78
  text =''
79
  print(text)
 
93
  returnID = UploadOpenFile.uploadFile(text,FileName,db_params)
94
  returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID)
95
  details = returnSkills.split('@')
96
+ responseData = 'Required Skills : ' + details[0] + '\n'
97
+ responseData = 'Soft Skills : ' + details[1] + '\n'
98
+ responseData = 'Good to have Skills : ' + details[2] + '\n'
99
+ return {"SkillDetails": responseData}
 
100
  @app.get("/ProfileMatch")
101
  def ProfileMatchResults():
102
  dbQuery = "select * from profilematch"