You have to consider your competition -- that is, the people schools can choose from as they are applying at the same time as you are.
First, they will generally not have "a few Fs" -- that's going to look rather bad on your transcript, in particular since it is at the end of your studies. If you had had a semester of this sort at the beginning, it would be possible to explain it away in your essay as "I needed to grow up, but as you can see in my transcript, I have gotten through this phase of my life and my recent semesters were all As". So that is an issue you have to think about how you can address or remedy.
Second, most of your competition is from people who were math undergraduates, have taken all foundational math courses with good grades, and have typically taken a few graduate math courses. You have taken one -- that's good --, but it will remain unclear to anyone looking at your application how broad your math undergraduate education really is, and how you would do with the graduate math breadth requirement most departments have.
So, long story short, I'm afraid what you currently have isn't particularly safe as far as getting admitted is concerned. I would see whether you can stay at your home institution for another year, for example, to fill in the holes in your transcript (more breadth in your math courses, maybe more graduate math courses, good grades).