Skip to content

Commit

Permalink
Revert "Update detect.py (#2174)"
Browse files Browse the repository at this point in the history
This reverts commit 0c0c1ed.
  • Loading branch information
nnegrey authored Jul 18, 2019
1 parent 6a71c74 commit 38db343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/cloud-client/detect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
bucket_name = match.group(1)
prefix = match.group(2)

bucket = storage_client.get_bucket(bucket_name)
bucket = storage_client.get_bucket(bucket_name=bucket_name)

# List objects with the given prefix.
blob_list = list(bucket.list_blobs(prefix=prefix))
Expand All @@ -715,7 +715,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
# Process the first output file from GCS.
# Since we specified batch_size=2, the first response contains
# the first two pages of the input file.
output = blob_list[1]
output = blob_list[0]

json_string = output.download_as_string()
response = json_format.Parse(
Expand Down

0 comments on commit 38db343

Please sign in to comment.