<human>: Give me the gist of the text in a nutshell

We've been together for 4.5 months now, and her poor performance in class is making her, in her words, 'wake up and realize that she's not smart.' It started in the fall with a physics class that she did not do well at all in, to the point where she has to retake the class, and her reaction to a subpar French test grade is what made me ask this subreddit.

In the past, she says she's told herself that she 'just doesn't test well,' but now it's going past that, I think, to her ability in general. Last night she told me she's been questioning if she deserves to be a person; she has struggled with depression in the past, but since I've known her (over a year), it hasn't been a problem. She is also still in touch with her incredibly helpful therapist, with whom she might be speaking now.

I'm sorry if this is rambling, I'm just not sure what information is necessary. We just had a lunch where I tried to tell her how defeatist her attitude was--I probably didn't handle it as well as I could. The problem is, **I have no idea what to say to her to make her believe that going to class and *trying* is actually worth the effort.
<bot>: After a string of bad grades, my girlfriend has just about given up on her intellectual potential. What can I do to make her feel like she can succeed again?