The webapp is designed to take images that are uploaded, display them on the webpage, and show the names of the classes with the top 3 confidences. There is an accompanying word cloud where the size of the word is correlated to the frequency of the class being the number one choice for a picture.
- Go to the
fashion-mnist-webapp
directory, run the following commands to containerize your web application and push it to DockerHub.
cd fashion-mnist-webapp
docker build -t <your web app image name> .
docker push <your web app image name>
- Modify deployment resource from the template
fashion-mnist-webapp.yaml
. You need to set:
MODEL_ENDPOINT
: Your Seldon model endpoint. (e.g. http://<AMBASSADOR_API_IP>/seldon//api/v0.1/predictions")image
: Your web app image at DockerHub
- Congratulations, your web app should be running now. You can use the following commands to check where your web app is hosted.
kubectl get svc fashion-mnist-webapp
# Your web app link is http://<Load_Balancer_IP>:8088
This web-app example is based on the Model Asset Exchange web-app example. (https://github.com/IBM/MAX-Image-Caption-Generator-Web-App)