Spaces:
Sleeping
Sleeping
changes
Browse files
app.py
CHANGED
@@ -66,15 +66,15 @@ def AllProfileMatchResults():
|
|
66 |
df = pd.read_sql_query(dbQuery, conn)
|
67 |
return parse_csv(df)
|
68 |
|
69 |
-
@app.post("/
|
70 |
-
def UploadOpenText(
|
71 |
|
72 |
-
returnID = UploadOpenFile.uploadFile(
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
return
|
78 |
|
79 |
|
80 |
@app.post("/ExtractSkillsByJobID/")
|
|
|
66 |
df = pd.read_sql_query(dbQuery, conn)
|
67 |
return parse_csv(df)
|
68 |
|
69 |
+
@app.post("/UploadJobDescriptionOpenText/")
|
70 |
+
def UploadOpenText(text : str, filename : str):
|
71 |
|
72 |
+
returnID = UploadOpenFile.uploadFile(text,filename,db_params,True)
|
73 |
+
returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID,True)
|
74 |
+
data = SkillMatch.SkillMatcher(model,db_params,returnID).split(';')
|
75 |
+
dataJson = {'Data':['Best Resume Fit', 'Score', 'ProfileID'], 'Values':[data[0], data[1], data[2]]}
|
76 |
+
df = pd.DataFrame(dataJson)
|
77 |
+
return parse_csv(df)
|
78 |
|
79 |
|
80 |
@app.post("/ExtractSkillsByJobID/")
|