Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix requests
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Sep 24, 2020
1 parent faa8b8d commit 17c018a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/detect/vision_batch_annotate_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def sample_batch_annotate_files(file_path="path/to/your/document.pdf"):
pages = [1, 2, -1]
requests = [{"input_config": input_config, "features": features, "pages": pages}]

response = client.batch_annotate_files(requests)
response = client.batch_annotate_files(requests=requests)
for image_response in response.responses[0].responses:
print(u"Full text: {}".format(image_response.full_text_annotation.text))
for page in image_response.full_text_annotation.pages:
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/detect/vision_batch_annotate_files_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def sample_batch_annotate_files(
pages = [1, 2, -1]
requests = [{"input_config": input_config, "features": features, "pages": pages}]

response = client.batch_annotate_files(requests)
response = client.batch_annotate_files(requests=requests)
for image_response in response.responses[0].responses:
print(u"Full text: {}".format(image_response.full_text_annotation.text))
for page in image_response.full_text_annotation.pages:
Expand Down

0 comments on commit 17c018a

Please sign in to comment.