using Eternal API in Salesforce
Run your flask app then expose in to public IP
please see the folowing address to expose you Localhost to public IP https://dashboard.ngrok.com/get-started
After this you get a URL somthing like this http://anyName.ngrok.io/
Add the URL to remote site setting in salesforce.