change
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ from RemoveSkills import RemoveSkill
|
|
28 |
from AddSkillDetails import AddSkill
|
29 |
from SkillMatcher import SkillMatch
|
30 |
from OpenAIResponse import OpenAIText
|
|
|
31 |
import ClassModals
|
32 |
import os
|
33 |
os.environ['HF_HOME'] = '/hug/cache/'
|
@@ -60,6 +61,16 @@ def UploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf")
|
|
60 |
df = pd.DataFrame(data)
|
61 |
return parse_csv(df)
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
@app.get("/AllProfileMatchResults")
|
64 |
def AllProfileMatchResults():
|
65 |
dbQuery = "select * from profilematch"
|
|
|
28 |
from AddSkillDetails import AddSkill
|
29 |
from SkillMatcher import SkillMatch
|
30 |
from OpenAIResponse import OpenAIText
|
31 |
+
from SkillExtractV1 import SkillExtractorDetailsV1
|
32 |
import ClassModals
|
33 |
import os
|
34 |
os.environ['HF_HOME'] = '/hug/cache/'
|
|
|
61 |
df = pd.DataFrame(data)
|
62 |
return parse_csv(df)
|
63 |
|
64 |
+
@app.post("/UploadJobDescriptionV1/")
|
65 |
+
def UploadJobDescriptionV1(file: bytes = File(...), FileName: str = "sample.pdf"):
|
66 |
+
text= ExtractContentFromFile.ExtractDataFromFile(FileName,file)
|
67 |
+
#returnID = UploadOpenFile.uploadFile(text,FileName,db_params,True)
|
68 |
+
returnSkills = SkillExtractorDetailsV1.SkillExtract(skill_extractor,text)
|
69 |
+
#details = returnSkills.split('@')
|
70 |
+
#data = {'Data':['Required Skills', 'Soft Skills', 'Good to have Skills'], 'Values':[details[0], details[1], details[2]]}
|
71 |
+
#df = pd.DataFrame(data)
|
72 |
+
return returnSkills
|
73 |
+
|
74 |
@app.get("/AllProfileMatchResults")
|
75 |
def AllProfileMatchResults():
|
76 |
dbQuery = "select * from profilematch"
|