This repository contains the End-to-End source code for deploying a Zero-Shot Image Classifier using CLIP as a REST API using CellStrat Hub and integrating the API into a Nextjs (React) App.
This code was presented as part of a Workshop on CellStrat Hub API which can be viewed here
- Run the CLIP.ipynb Notebook to see how CLIP is used for Zero-Shot Image Classification.
- The
inference.py module
is used to run an inference pipeline on any image and a list of classes.
- This model is hosted as an API on CellStrat Hub and the Interactive Web Demo can be accessed at https://clip-classifier.netlify.app
- You can learn more about Hub API deployment here
- The Next.js Frontend App's source code can be found at clip-app/