10000 Add authentication instructions · marcusjc/python-docs-samples@c43b65d · GitHub
[go: up one dir, main page]

Skip to content

Commit c43b65d

Browse files
committed
Add authentication instructions
1 parent 125dda0 commit c43b65d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ml_engine/online_prediction/predict.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717

1818
# [START authenticating]
19+
# To authenticate set the environment variable
20+
# GOOGLE_APPLICATION_CREDENTIALS=<path_to_service_account_file>
1921
def get_ml_engine_service():
2022
return googleapiclient.discovery.build('ml', 'v1beta1')
2123
# [END authenticating]

0 commit comments

Comments
 (0)
0