Skip to content

Commit cd545f8

Browse files
[formrecognizer] Copy sample fix (Azure#24902)
* fix var naming * enable copy samples for live testing
1 parent 40c0f81 commit cd545f8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

scripts/devops_tasks/test_run_samples.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@
134134
"azure-ai-formrecognizer": [
135135
"sample_manage_custom_models.py",
136136
"sample_manage_custom_models_async.py",
137-
"sample_copy_model.py",
138-
"sample_copy_model_async.py",
139137
],
140138
"azure-ai-language-questionanswering": ["sample_chat.py"],
141139
"azure-ai-textanalytics": [

sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_copy_model_to.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def sample_copy_model_to(custom_model_id):
5656
)
5757
copied_over_model = poller.result()
5858

59-
print("Model ID: {}".format(model.model_id))
60-
print("Description: {}".format(model.description))
61-
print("Model created on: {}\n".format(model.created_on))
59+
print("Model ID: {}".format(copied_over_model.model_id))
60+
print("Description: {}".format(copied_over_model.description))
61+
print("Model created on: {}\n".format(copied_over_model.created_on))
6262
print("Doc types the model can recognize:")
63-
for name, doc_type in model.doc_types.items():
63+
for name, doc_type in copied_over_model.doc_types.items():
6464
print("\nDoc Type: '{}' which has the following fields:".format(name))
6565
for field_name, field in doc_type.field_schema.items():
6666
print("Field: '{}' has type '{}' and confidence score {}".format(

0 commit comments

Comments
 (0)