Skip to content

Commit 26a8b35

Browse files
committed
perf: avoid variable overrides by end users
1 parent 23ecd8a commit 26a8b35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_ac.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def parse_data_to_record_dict(record_chunk):
110110
# the script `labeling_functions` does not exist. It will be inserted at runtime
111111
import attribute_calculators
112112

113-
DEFAULT_USER_PROMPT = attribute_calculators.USER_PROMPT
113+
DEFAULT_USER_PROMPT_A2VYBG = attribute_calculators.USER_PROMPT_A2VYBG
114114

115115
vocab = spacy.blank(iso2_code).vocab
116116

@@ -128,8 +128,8 @@ def parse_data_to_record_dict(record_chunk):
128128
amount = len(record_dict_list)
129129
__print_progress(0.0)
130130
for record_dict in record_dict_list:
131-
attribute_calculators.USER_PROMPT = prepare_and_render_mustache(
132-
DEFAULT_USER_PROMPT, record_dict
131+
attribute_calculators.USER_PROMPT_A2VYBG = prepare_and_render_mustache(
132+
DEFAULT_USER_PROMPT_A2VYBG, record_dict
133133
)
134134

135135
idx += 1

0 commit comments

Comments
 (0)