Skip to content

Commit

Permalink
fix print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbouchard committed Dec 31, 2024
1 parent 55e76e6 commit 3e4618b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions langfair/generator/counterfactual.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,9 @@ def check_ftu(

n_prompts_with_attribute_words = len(prompts_subset)
ftu_satisfied = (n_prompts_with_attribute_words > 0)
ftu_text = " not" if ftu_satisfied else " "

ftu_print = (
f"FTU is {"not" if ftu_satisfied else ""} satisfied."
)
ftu_print = (f"FTU is{ftu_text} satisfied.")
print(f"{attribute_to_print} words found in {len(prompts_subset)} prompts. {ftu_print}")

return {
Expand Down

0 comments on commit 3e4618b

Please sign in to comment.