Skip to content

Commit e2c2e2a

Browse files
author
Jon Wayne Parrott
committed
Fix vision samples
Change-Id: I6b527b2f2d81c9894fa542ead39177aa5f4e4188
1 parent 9ea53bc commit e2c2e2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vision/api/label/snippets.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323

2424
def get_service():
2525
"""Get vision service using discovery."""
26-
return googleapiclient.discovery.build('vision', 'v1',)
26+
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)
2731

2832

2933
def crop_hint(photo_file):

0 commit comments

Comments
 (0)