Cats bite and attack their owners for many reasons, and it can be hard to figure out the reason and correct it. Here are some things you can try:
Some cats bite because they are basically bored. Cats are by nature predators that hunt, capture, and kill birds and rodents. If they don't have an outlet for their need to hunt, they can be aggressive to their owners or other animals in the house. There is a concept called "environment enrichment", where you make an indoor space interesting, and stimulating to their natural instinct to hunt. This website will tell you about environment enrichment and how to do it:
Working with a veterinarian who can make a house call and observe her may be helpful.
If you learn the triggers that stimulate her to attack you, you can try to train her to stop. When you know she is going to attack, have some treats or catnip handy to throw near her to try to redirect her. If she learns that getting ready to attack, but not actually attacking, gets her a reward, she may learn not to attack. This is not easy to do, and working with a specialist to show you how to train her might be best.
Behavior problems are tough, and rarely have a quick easy answer. Let me know what other questions you have.