Spaces:
Running
Running
fixed bug (#16)
Browse files- fixed bug#2 (ed7b549542d67fb55add5468212cbb559ab14ce8)
- Ars/controllers.py +1 -1
Ars/controllers.py
CHANGED
@@ -17,7 +17,7 @@ async def resilience_analysis(file:UploadFile,userId:str):
|
|
17 |
resume_text = extract_text_from_bytes(pdf_bytes=contents)
|
18 |
hashed_doc = get_document_hash(resume_text)
|
19 |
|
20 |
-
check = get_document_by_hashed_doc(hashed_doc=hashed_doc)
|
21 |
if check==None:
|
22 |
resume= await resume_analysis(file)
|
23 |
risk = calculate_automation_risk(resume)
|
|
|
17 |
resume_text = extract_text_from_bytes(pdf_bytes=contents)
|
18 |
hashed_doc = get_document_hash(resume_text)
|
19 |
|
20 |
+
check = await get_document_by_hashed_doc(hashed_doc=hashed_doc)
|
21 |
if check==None:
|
22 |
resume= await resume_analysis(file)
|
23 |
risk = calculate_automation_risk(resume)
|