How can you control yourself not to like someone?

Me and my flatmate, are close cause we have a lot of deep talk, she is nearly what I want in a relationship, the deep talk, having dinner together.
She is funny, cute, and awesome cook but she thinks I am better cook than her.
I am attracted to her.
She clearly said " you are like a family", (brother or a father)
Lately I have been too attached to her. Like we go to study together at uni and have a great time watching series.
She doesn't find me attractive cause I am short from her standards.
I want to get rid of the feelings and be the friend she deserves. And enjoy the time I have with her till September.
I don't want to end my friendship cause she is too sweet and kind.
I know that she will reject me cause I don't fit her standards at all.
Please someone give me some advice.
How can you control yourself not to like someone?
Post Opinion