Skip to content

Commit d831408

Browse files
authored
Update faces.py (#539)
1 parent c5362e8 commit d831408

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

vision/api/face_detection/faces.py

Lines 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)