Vaibhav84 commited on
Commit
6bbaa6c
·
1 Parent(s): 9ce2997
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -72,9 +72,11 @@ def parse_csv(df):
72
  return parsed
73
 
74
 
 
 
75
 
76
  @app.post("/uploadJobDescription/")
77
- def uploadJobDescription(file: bytes = File(...), FileName: str = str,test :SkillData=SkillData):
78
  # Save file locally for processing
79
  text =''
80
  print(text)
@@ -98,7 +100,7 @@ def uploadJobDescription(file: bytes = File(...), FileName: str = str,test :Ski
98
  #skill_data.softSkills = details[1]
99
  #skill_data.goodToHaveSkills = details[1]
100
  # Process saved file
101
- return {"content": test}
102
  @app.get("/ProfileMatch")
103
  def ProfileMatchResults():
104
  dbQuery = "select * from profilematch"
 
72
  return parsed
73
 
74
 
75
+ testdata : SkillData
76
+ testdata.filename = 'abc.pdf'
77
 
78
  @app.post("/uploadJobDescription/")
79
+ def uploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf",test: SkillData = testdata):
80
  # Save file locally for processing
81
  text =''
82
  print(text)
 
100
  #skill_data.softSkills = details[1]
101
  #skill_data.goodToHaveSkills = details[1]
102
  # Process saved file
103
+ return {"content": test.filename}
104
  @app.get("/ProfileMatch")
105
  def ProfileMatchResults():
106
  dbQuery = "select * from profilematch"