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 d831408

Browse filesBrowse files
authored
Update faces.py (GoogleCloudPlatform#539)
1 parent c5362e8 commit d831408
Copy full SHA for d831408

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-6
lines changed

‎vision/api/face_detection/faces.py

Copy file name to clipboardExpand all lines: vision/api/face_detection/faces.py
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,9 @@
2626

2727

2828
# [START get_vision_service]
29-
DISCOVERY_URL = ('https://{api}.googleapis.com/$discovery/rest?'
30-
'version={apiVersion}')
31-
32-
3329
def get_vision_service():
3430
credentials = GoogleCredentials.get_application_default()
35-
return discovery.build('vision', 'v1', credentials=credentials,
36-
discoveryServiceUrl=DISCOVERY_URL)
31+
return discovery.build('vision', 'v1', credentials=credentials)
3732
# [END get_vision_service]
3833

3934

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.