I also used this approach but the original creator's version posted on GitHub is remarkably more concise (due to a clever use of the ++ operator).
Re:Show HN: Command Line Challenge
by ianmcgowan on Thursday January 26, 2017 @08:16PM
(#13496946)
awk '!h[$0]++' faces.txt
That is clever! Awk golf hole-in-one ;-)
awk '!h[$0] {h[$0]=1; print}' faces.txt