Spaces:
Runtime error
Runtime error
Caitlin Blackmore
commited on
Commit
·
aa1d437
1
Parent(s):
4b8acb3
candidate matcher bug fix
Browse files
main.py
CHANGED
|
@@ -158,9 +158,9 @@ async def post_matches(request: Request, jobdesc: UploadFile = File(...)):
|
|
| 158 |
jobdesc = get_resume(jobdesc)
|
| 159 |
skills = await skillNER(jobdesc)
|
| 160 |
simResults = await sim_result_loop(jobdesc)
|
| 161 |
-
links = get_links(simResults)
|
| 162 |
print(time.time() - t)
|
| 163 |
-
return templates.TemplateResponse('candidate_matcher.html', context={'request': request, 'jobdesc': jobdesc, 'skills': skills, 'simResults': simResults, 'links': links})
|
| 164 |
|
| 165 |
@app.get("/find-hire/", response_class=HTMLResponse)
|
| 166 |
def find_hire(request: Request):
|
|
|
|
| 158 |
jobdesc = get_resume(jobdesc)
|
| 159 |
skills = await skillNER(jobdesc)
|
| 160 |
simResults = await sim_result_loop(jobdesc)
|
| 161 |
+
links = get_links(simResults[0])
|
| 162 |
print(time.time() - t)
|
| 163 |
+
return templates.TemplateResponse('candidate_matcher.html', context={'request': request, 'jobdesc': jobdesc, 'skills': skills, 'simResults': simResults[0], 'links': links})
|
| 164 |
|
| 165 |
@app.get("/find-hire/", response_class=HTMLResponse)
|
| 166 |
def find_hire(request: Request):
|