Skip to content

Commit

Permalink
fix: changes positional to named pararameters in Video samples [(#401…
Browse files Browse the repository at this point in the history
…7)](GoogleCloudPlatform/python-docs-samples#4017)

Changes calls to `VideoClient.annotate_video()` so that GCS URIs are provided as named parameters.

Example:
```
operation = video_client.annotate_video(path, features=features)
```
Becomes:
```
operation = video_client.annotate_video(input_uri=path, features=features)
```
  • Loading branch information
telpirion authored Jun 9, 2020
1 parent 8207cfd commit cd88a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/labels/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def analyze_labels(path):
# [START video_label_tutorial_construct_request]
video_client = videointelligence.VideoIntelligenceServiceClient()
features = [videointelligence.enums.Feature.LABEL_DETECTION]
operation = video_client.annotate_video(path, features=features)
operation = video_client.annotate_video(input_uri=path, features=features)
# [END video_label_tutorial_construct_request]
print('\nProcessing video for label annotations:')

Expand Down

0 comments on commit cd88a29

Please sign in to comment.