Update app.py
Browse files
app.py
CHANGED
@@ -149,8 +149,8 @@ def pred_resume(pdf_path) -> dict:
|
|
149 |
print("Pdf name: ", pdf_path.name)
|
150 |
print("Result: ", result)
|
151 |
print("\n--------------------------------------------------------------------------------------------------------------------------\n")
|
152 |
-
return
|
153 |
-
def norm(result:
|
154 |
result = ast.literal_eval(result)
|
155 |
result["person_name"] = " ".join([parse_string(i).capitalize() for i in " ".join(result["person_name"]).split()])
|
156 |
result["email_value"] = parse_email(result["email_value"])
|
|
|
149 |
print("Pdf name: ", pdf_path.name)
|
150 |
print("Result: ", result)
|
151 |
print("\n--------------------------------------------------------------------------------------------------------------------------\n")
|
152 |
+
return result
|
153 |
+
def norm(result: dict) -> str:
|
154 |
result = ast.literal_eval(result)
|
155 |
result["person_name"] = " ".join([parse_string(i).capitalize() for i in " ".join(result["person_name"]).split()])
|
156 |
result["email_value"] = parse_email(result["email_value"])
|