Update app.py
Browse files
app.py
CHANGED
@@ -148,9 +148,11 @@ def norm(result: str) -> str:
|
|
148 |
result["education_name"] = parse_designation(result["education_name"])
|
149 |
result["experience_name"] = parse_designation(result["experience_name"])
|
150 |
for k, v in result.items():
|
151 |
-
if isinstance(v,
|
152 |
result[k] = ". ".join([i for i in result[k]])
|
153 |
-
|
|
|
|
|
154 |
|
155 |
|
156 |
with gr.Blocks() as demo:
|
|
|
148 |
result["education_name"] = parse_designation(result["education_name"])
|
149 |
result["experience_name"] = parse_designation(result["experience_name"])
|
150 |
for k, v in result.items():
|
151 |
+
if isinstance(v, list):
|
152 |
result[k] = ". ".join([i for i in result[k]])
|
153 |
+
if isinstance(v, int) or isinstance(v, float):
|
154 |
+
result[k] = str(result[k])
|
155 |
+
return "Tên: "+result["person_name"]+"\n"+"Ngày sinh: "+result["dob_value"]+"\n"+"Giới tính: "+result["gender_value"]+"\n"+"Chức danh: "+result["designation_value"]+"\n"+"Số điện thoại: "+result["phonenumber_value"]+"\n"+"Email: "+result["email_value"]+"\n"+"Địa chỉ: "+result["address_value"]+"\n"+"Tên cơ quan/công việc: "+result["experience_name"]+"\n"+"Kỹ năng: "+result["skill_value"]+"\n"+"Năm kinh nghiệm: "+result["experience_time"]
|
156 |
|
157 |
|
158 |
with gr.Blocks() as demo:
|