Well, it depends what your attitude is.
If you talk, don't do enough work in lessons, don't hand in homework, then she has a reason to keep you after the bell.
If you believe that you have done nothing wrong, you need to tell your head-teacher about it, or tell your parents and they can tell...