Spaces:
Running
Running
Zekun Wu
commited on
Commit
•
9f24a11
1
Parent(s):
39654c5
update
Browse files- generation.py +2 -1
generation.py
CHANGED
@@ -52,7 +52,8 @@ def process_scores(df, num_run,parameters,privilege_label,protect_label,agent,gr
|
|
52 |
for index, row in tqdm(df.iterrows(), total=len(df), desc="Processing entries", unit="entry"):
|
53 |
for key, label in zip(['Privilege', 'Protect', 'Neutral'], [privilege_label, protect_label, None]):
|
54 |
prompt_temp = create_summary(row,group_name,label)
|
55 |
-
print(f"Run {run + 1} - Entry {index + 1} - {key}:\n{prompt_temp}")
|
|
|
56 |
result = invoke_retry(prompt_temp,agent,parameters)
|
57 |
scores[key][index].append(result)
|
58 |
|
|
|
52 |
for index, row in tqdm(df.iterrows(), total=len(df), desc="Processing entries", unit="entry"):
|
53 |
for key, label in zip(['Privilege', 'Protect', 'Neutral'], [privilege_label, protect_label, None]):
|
54 |
prompt_temp = create_summary(row,group_name,label)
|
55 |
+
# print(f"Run {run + 1} - Entry {index + 1} - {key}:\n{prompt_temp}")
|
56 |
+
# print("=============================================================")
|
57 |
result = invoke_retry(prompt_temp,agent,parameters)
|
58 |
scores[key][index].append(result)
|
59 |
|