HTTP response from python code to MIT Appinventor

Hi guys, lately I'm working on a project for school that involves deep learning and, most precisely, visual recognition.
It consists of an app that sends an image to a server(my computer) and gives the result of the prediction to the user.
I know how to do the client part and I would like to know how to do the server part.
Kind regards, Vittorio.