nam194 commited on
Commit
b3fce6b
1 Parent(s): 90b529f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 str(result)
153
- def norm(result: str) -> 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"])
 
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"])