Hi, when I try to load a trained model, the web page gives me backend error code 502, the local application works fine, and all the necessary libraries are already installed in pythonanywhere. I would really appreciate a help.
Hi, when I try to load a trained model, the web page gives me backend error code 502, the local application works fine, and all the necessary libraries are already installed in pythonanywhere. I would really appreciate a help.
TensorFlow does not work in web apps. We have a help page here about that. One option that you can use is to run your machine learning code in a task instead of in your web app: https://help.pythonanywhere.com/pages/AsyncInWebApps/
thanks glenn for your answer, I have tried changing the backend to theano as indicated in the link https://help.pythonanywhere.com/pages/MachineLearningInWebsiteCode/
I modified the .keras folder, in the backend part I replaced it with "theano". but I keep getting the same error. Do you know of any other way to change the backend from tensorflo to theano? Or maybe I configured it wrong?
The way that I know id the one that is described in the help page.
daniel0099, I had the same issue as you. Changing backend to theano in the keras.json file doesn't seem to do anything until I install theano. All my packages are in my virtualenv.
Thanks for sharing, @collinloo!