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 ...
Implementing the web application
Get Hands-On Deep Learning with Apache Spark now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.