Skip to content

Instantly share code, notes, and snippets.

@ColeMundus
Created October 13, 2019 01:48
Show Gist options
  • Save ColeMundus/e1f0fa75fbbb22da85453b3d342e22e9 to your computer and use it in GitHub Desktop.
Save ColeMundus/e1f0fa75fbbb22da85453b3d342e22e9 to your computer and use it in GitHub Desktop.
lmao
curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \
https://automl.googleapis.com/v1beta1/projects/905505838894/locations/us-central1/models/ICN618229000019378176:predict \
-d @request.json
{
"payload": {
"image": {
"imageBytes": "YOUR_BASE64_ENCODED_IMAGE_BYTES"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment