What I have heard and have done with my puppies is when they bite you, you say "No, no bite!". You then put them in their crate or ignore them, they soon learn that that type of behavior ends the fun. It really does work.
Signed the owner of a seven month old puppy that USED to be called "my puppy-pirana" but not anymore.