Is it appropriate to buy a "thank you" gift for a PhD supervisor?
After your defense, and final submission to the university; you can give the gift, with a thank you note. Right before your defense is a big no, in my opinion.