How can I use Rasa Pro with local llm loaded with Flask

Hello everyone, I have finetuned gemma 2 with my data and I have loaded the model using flask to a local endpoint http://127.0.0.1:500. How can I use it for intent classification and rephrase? I am reading the documentation and I have tried multiple ways but I haven’t managed yet to do it. Thank you very much