So I am no expert so I don't know if this is actually the correct thing to do, but it always worked for me.
You have to be very attentive about what she says and talks about for this to work.
So when I feel we hit a wall with a discussion and a new one doesnt arise and I also don't have something interesting to ask her (what rarely happens now a days, but it happened alot back when I was less experienced)
I start to banter again. I suppose you know what that means and I know bantering should only start the conversation playfully but in my experience girls love to banter once in a while if you are barely decent at it.
So when you payed attention to what she said there is a 95% chance that she said something that you can spin around to make a banter about, so most of the time when that happens I just shoot it out directly make her laugh and feel good, but sometimes I hold back and come back to the topic again.
example topic about hobbies before:
She: "I really love ride the bike around town and not use the car"
so like 30-40mins later
You: "didn't you said you like to ride the bike, So you are one of those ruthless bikers that don't care for the traffic or anyone and that I am so annoyed about?!" (laugh, smile while you say it)
explanation, you pick up a topic thats important to her, you make a little bit of fun of her but she can easily defend and you have again something to talk about to go back into rapport and she will most likely laugh.
the example above is propably weird for some but here in Berlin many many people drive bikes and they drive them ruthlessly =)
so other classic bantering lines would be
"Stop undressing me with your eyes" (not easy to drop with confidence out of nowhere, but can be a life saver)
"Oh no a friend of mine... I can’t be seen talking to you.” (you can make a game of it, point to a random guy/girl be anxious and then out of the blue you say like... "ah just messing with you I'd love to be seen with you")
hope I could help!
cheers from Germany