Sound Classifier made in teachable machines and hosted on Cloud Run
To deploy the service on Cloud Run you would first need to follow these steps:
- Build the service
- Create container image
- Deploy the service
The service is already built for you. Just go ahead and create a Google Cloud Project and in the project build the image in the next step.
If you are interested in starting from scratch then follow this Quikstart to get the basic node.js service running.
Create a public directory in the folder and add all the .js and index.html files donwloaded from p5.js
Copy the contents of index.js from this repo and add them to your index.js. You are essentially just calling the index.html from the node.js service.
gcloud builds submit --tag gcr.io/PROJECT-ID/soundclassifier-service
gcloud run deploy --image gcr.io/PROJECT-ID/soundclassifier-service --platform managed