Spaces:
Sleeping
Sleeping
Changes
Browse files
app.py
CHANGED
@@ -112,9 +112,9 @@ class FileText(BaseModel):
|
|
112 |
fname: str
|
113 |
|
114 |
@app.get("/UploadProfileOpenText/")
|
115 |
-
def UploadProfileOpenText(
|
116 |
|
117 |
-
|
118 |
returnID = UploadOpenFile.uploadFile(text,filename,db_params,False)
|
119 |
returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID,False)
|
120 |
details = returnSkills.split('@')
|
|
|
112 |
fname: str
|
113 |
|
114 |
@app.get("/UploadProfileOpenText/")
|
115 |
+
def UploadProfileOpenText(file: bytes = File(...), filename : str="abc.pdf"):
|
116 |
|
117 |
+
text= ExtractContentFromFile.ExtractDataFromFile(filename,file)
|
118 |
returnID = UploadOpenFile.uploadFile(text,filename,db_params,False)
|
119 |
returnSkills = SkillExtractorDetails.SkillExtract(db_params,skill_extractor,returnID,False)
|
120 |
details = returnSkills.split('@')
|