How to resume endpoint from Python code

I have whisper large v3 and i want to start it from python code and without manual action. how i can do that?