Using Universal sentence encoder to embed user messages from chatbot

Im trying to use universal sentence encoder to embed the user messages from a chatbot to classify their category. I know that tensorflow doesnt work in the web apps, I've tried to use keras and change the backend but that doesnt seem to be working for me. I saw in a different post that having an always on task could be a possible solution, but Im not sure what the best way is to make that happen. Or will this not work at all on pythonanywhere?

We have a help page with some more detail here: