Skip to content

Commit 8c83118

Browse files
authored
samples: moves import statement within region tags (#190)
1 parent 45acae0 commit 8c83118

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

document_ai/snippets/quickstart_sample.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
# [START documentai_quickstart]
18-
from google.cloud import documentai_v1 as documentai
18+
1919

2020
# TODO(developer): Uncomment these variables before running the sample.
2121
# project_id= 'YOUR_PROJECT_ID'
@@ -26,6 +26,8 @@
2626

2727
def quickstart(project_id: str, location: str, processor_id: str, file_path: str):
2828

29+
from google.cloud import documentai_v1 as documentai
30+
2931
# You must set the api_endpoint if you use a location other than 'us', e.g.:
3032
opts = {}
3133
if location == "eu":

0 commit comments

Comments
 (0)