Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

What components should I use for this app ?

Hello, basically I have a website running as a container on google cloud run (Flask application with basic html / css). It's the first website i ever created and I'm a bit lost on how to add a new functionality in my website.

I have made a local ML application in python that take an image as input and return images and text as outputs. The thing is that I want this application to be added in my website in a way that the visitor have an option to upload a file and once the upload is done it triggers the ML pipeline and wait on site for the response.

My question is how should I proceed to do this on GCP ? I need to have a place to store the input images and I also need to find a way to trigger the ML pipeline once the user uploaded an img file. Should I build a distinct API for the ML pipeline ? Where do I store my trained neural network ? Is it possible to call an API with an image ? I really open to all suggestions.

Thanks in advance 😇

0 2 135
2 REPLIES 2

Lots of questions that require perhaps more of a conversation than a forum post will allow.  But a couple of thoughts on this.  

In terms of where to store the images, the obvious would be Google Cloud Storage: https://cloud.google.com/storage/docs

Then one option could be to use triggers to execute a Cloud Function that then runs your ML pipline: https://cloud.google.com/functions/docs/calling/storage

Or if you have multiple steps / processes that you wanted to run, you could have the Cloud Function trigger a Cloud Workflow: https://cloud.google.com/workflows/docs/overview

Some ideas to explore there, hope that helps.

Thanks Alex I will look into it.