- Serve up a pytorch model via flask and access on a publix URL via ngrok
- Use as a research tool for batch processing or just as an on demand services, all GPU accelerated :) Be sure to read the Colab FAQ
Open the notebook on colab by clicking on the Open In Colab
button above and follow the instructions to mount your Google drive. Then you can make a request from anywhere on the internet (substituting the ngrok url below for your own) e.g:
curl -X POST -F [email protected] http://6801b5e1.ngrok.io/predict
Run the flask app, this requires sudo on my machine:
sudo python3 app.py
Check that the app is accessible on the ngrok url. Then make a prediction:
curl -X POST -F [email protected] http://localhost:5000/predict
{
"class_id": "n01833805",
"class_name": "hummingbird"
}