I went through these stages with my dog Timber. Not the most fun thing in the world, I know.

When she bit me, I would bend down, hold her nose up to mine and look deep into her eyes and say "No biting!"

I tried to turn my back on her and ignore her, but then she would start chewing on my legs and ankles. So I would leave altogether. She didn't like it when I stopped playing with her so suddenly.

Good luck!