Spaces:
Sleeping
Sleeping
cahnges
Browse files
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"
|
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 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
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"
|