Skip to content

Commit 49a7ce7

Browse files
committed
put the typo error back to see if new error persistant
1 parent f386528 commit 49a7ce7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

documentai/snippets/handle_response_sample_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_process_document_summarizer(capsys):
200200
location = "us"
201201
project_id = os.environ["GOOGLE_CLOUD_PROJECT"]
202202
processor_id = "feacd98c28866ede"
203-
processor_version = "pretrained-foundation-model-v2.0-2024-02-22"
203+
processor_version = "stable"
204204
file_path = "resources/superconductivity.pdf"
205205
mime_type = "application/pdf"
206206

documentai/snippets/handle_response_sample_v1beta3.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def process_document_summarizer_sample(
5151
documentai.DocumentSchema.EntityType.Property(
5252
name="summary",
5353
value_type="string",
54-
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
54+
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
5555
property_metadata=documentai.PropertyMetadata(
5656
field_extraction_metadata=documentai.FieldExtractionMetadata(
5757
summary_options=summary_options
@@ -110,17 +110,17 @@ def process_document_custom_extractor_sample(
110110
documentai.DocumentSchema.EntityType.Property(
111111
name="invoice_id",
112112
value_type="string",
113-
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
113+
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
114114
),
115115
documentai.DocumentSchema.EntityType.Property(
116116
name="notes",
117117
value_type="string",
118-
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
118+
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
119119
),
120120
documentai.DocumentSchema.EntityType.Property(
121121
name="terms",
122122
value_type="string",
123-
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
123+
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
124124
),
125125
]
126126
# Optional: For Generative AI processors, request different fields than the

0 commit comments

Comments
 (0)