October 2018
Beginner
362 pages
9h 32m
English
To get started, you'll have to create a Google Cloud service account key so that your application can access the model. Navigate to the link https://console.cloud.google.com/apis/credentials/serviceaccountkey, and create a new account. Be sure to download the key as a JSON file. To connect to GCP, you'll need to setup your account credentials as an environment variable that GCP can access. Go ahead and set it's location as an environment variable:
GOOGLE_APPLICATION_CREDENTIALS = your_key.json
Let's create a script called predict.py (you can find the completed script in the chapter folder). First, we'll import the Google libraries that will allow our program to connect to the API. GoogleCredidentials will discover ...
Read now
Unlock full access