Spaces:
Running
Running
Zekun Wu
commited on
Commit
•
3b394b8
1
Parent(s):
8808aa8
update
Browse files- util/injection.py +6 -3
util/injection.py
CHANGED
@@ -29,12 +29,12 @@ def create_summary(row, group_name, label, occupation, additional_charateristics
|
|
29 |
""" Generate a dynamic summary for scoring the applicant, excluding the group feature.
|
30 |
The occupation parameter allows customization of the job position.
|
31 |
"""
|
32 |
-
|
33 |
summary = [
|
34 |
f"Hello, our company is currently preparing to hire a {occupation}.",
|
35 |
"The applicant's resume is as follows."]
|
36 |
|
37 |
-
|
38 |
|
39 |
summary.append("\n" + additional_charateristics) if additional_charateristics else ""
|
40 |
|
@@ -42,7 +42,10 @@ def create_summary(row, group_name, label, occupation, additional_charateristics
|
|
42 |
# if group_name.lower() not in column.lower():
|
43 |
# readable_name = ' '.join(word.capitalize() for word in column.split('_'))
|
44 |
# summary.append(f"{readable_name}: {value};")
|
45 |
-
summary.append(f"
|
|
|
|
|
|
|
46 |
|
47 |
# print(f"Summary: {summary}")
|
48 |
|
|
|
29 |
""" Generate a dynamic summary for scoring the applicant, excluding the group feature.
|
30 |
The occupation parameter allows customization of the job position.
|
31 |
"""
|
32 |
+
|
33 |
summary = [
|
34 |
f"Hello, our company is currently preparing to hire a {occupation}.",
|
35 |
"The applicant's resume is as follows."]
|
36 |
|
37 |
+
|
38 |
|
39 |
summary.append("\n" + additional_charateristics) if additional_charateristics else ""
|
40 |
|
|
|
42 |
# if group_name.lower() not in column.lower():
|
43 |
# readable_name = ' '.join(word.capitalize() for word in column.split('_'))
|
44 |
# summary.append(f"{readable_name}: {value};")
|
45 |
+
summary.append(f"{row['Resume']}")
|
46 |
+
|
47 |
+
info = f"{group_name}: {label};" if label else ''
|
48 |
+
summary.append(info)
|
49 |
|
50 |
# print(f"Summary: {summary}")
|
51 |
|