We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea53bc commit e2c2e2aCopy full SHA for e2c2e2a
vision/api/label/snippets.py
@@ -23,7 +23,11 @@
23
24
def get_service():
25
"""Get vision service using discovery."""
26
- return googleapiclient.discovery.build('vision', 'v1',)
+ discovery_url = (
27
+ 'https://vision.googleapis.com/$discovery/rest?'
28
+ 'labels=TRUSTED_TESTER&version=v1')
29
+ return googleapiclient.discovery.build(
30
+ 'vision', 'v1', discoveryServiceUrl=discovery_url)
31
32
33
def crop_hint(photo_file):
0 commit comments