Forums

Local tensorflow app

Hy, i have a flask web app that need to make some predictions with a pretrained tensorflow keras model. It not run in the flask app, i seed a lot of post related that issue, then i move all related machine learning code to separate script and tried to exchange input tensor and output prediction with the flask app using a local socket and pickle. The console script is listening on 127.0.0.1 and port 65432, but the flask app get conection error 111 when attempt to connect to that socket. How can i solve this problem? Best regards

It is not possible to connect from a web app to a console. See https://help.pythonanywhere.com/pages/AsyncInWebApps/ about doing work outside of your web app.