This model is trained on spectrograms of malwares. It is supposed to make a prediction.

POST /image - accepts an image in binary format, either as an octet-stream file, or as a multipart/form-data with files in the imageData parameter. The server loads the image using the Python Imaging Library, runs it through the predict_image function from the predict module (not shown), and returns the results as a JSON object.

POST /url - accepts a JSON object containing a URL to an image. The server loads the image using the predict_url function from the predict module, and returns the results as a JSON object.