Vaibhav84 commited on
Commit
94d87be
·
1 Parent(s): 91ea20b
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -99,7 +99,9 @@ def uploadJobDescription(file: bytes = File(...), FileName: str = "sample.pdf")
99
  responseData = responseData + 'Soft Skills : ' + details[1]
100
 
101
  responseData = responseData + 'Good to have Skills : ' + details[2]
102
- return {JSONResponse(jsonable_encoder(content={"Required Skills":details[0] , "Soft Skills":details[1] , "Good to have Skills" : details[2]}))}
 
 
103
  @app.get("/AllProfileMatchResults")
104
  def ProfileMatchResults():
105
  dbQuery = "select * from profilematch"
 
99
  responseData = responseData + 'Soft Skills : ' + details[1]
100
 
101
  responseData = responseData + 'Good to have Skills : ' + details[2]
102
+ data = {'Data':['Required', 'Soft', 'Good'], 'Values':[details[0], details[1], details[2]]}
103
+ df = pd.DataFrame(data)
104
+ return parse_csv(df)
105
  @app.get("/AllProfileMatchResults")
106
  def ProfileMatchResults():
107
  dbQuery = "select * from profilematch"