Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e2c2e2a

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

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎vision/api/label/snippets.py

Copy file name to clipboardExpand all lines: vision/api/label/snippets.py
+5-1Lines changed: 5 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.