Implementing the web application

Let's go back to our main task and start implementing a web application that allows users to upload an image, and then use the serialized VGG16 model to make an inference on it. Several frameworks exist for the JVM to implement web applications. In this case, to minimize our efforts, we are going to use SparkJava (http://sparkjava.com/, not to be confused with Apache Spark), a micro framework for JVM programming languages, which has being implemented to keep rapid prototyping in mind. Compared to other web frameworks, it has a minimal boilerplate. SparkJava isn't for web applications only; it is possible to implement the REST API in very few lines of code (it will also be used in the next section to implement ...

Get Hands-On Deep Learning with Apache Spark now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.