A simple mobile app interface can be designed using Android Studio, and the relevant code will be generated as an XML file. As you can see in the following screenshot (Figure 7.3), the app consists of a simple movie review textbox, where the users can input their movie reviews, and, once done, press the SUBMIT button. Once the SUBMIT button is pressed, the review will be passed to the core app logic, which will process the movie review text and pass it to the TensorFlow optimized model for inference.
As a part of the inference, a sentiment score will be computed, which will be displayed on the mobile app and also showcased as a star rating:
The XML file required to generate the previously mentioned view of the mobile app is illustrated as follows:
<?xml version="1.0" encoding="utf-8...