diff --git a/scripts/devops_tasks/test_run_samples.py b/scripts/devops_tasks/test_run_samples.py index 0632c44dd3bb..b937bb6087ac 100644 --- a/scripts/devops_tasks/test_run_samples.py +++ b/scripts/devops_tasks/test_run_samples.py @@ -134,8 +134,6 @@ "azure-ai-formrecognizer": [ "sample_manage_custom_models.py", "sample_manage_custom_models_async.py", - "sample_copy_model.py", - "sample_copy_model_async.py", ], "azure-ai-language-questionanswering": ["sample_chat.py"], "azure-ai-textanalytics": [ diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_copy_model_to.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_copy_model_to.py index 3a3f39ded0e5..e998391afdf6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_copy_model_to.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_copy_model_to.py @@ -56,11 +56,11 @@ def sample_copy_model_to(custom_model_id): ) copied_over_model = poller.result() - print("Model ID: {}".format(model.model_id)) - print("Description: {}".format(model.description)) - print("Model created on: {}\n".format(model.created_on)) + print("Model ID: {}".format(copied_over_model.model_id)) + print("Description: {}".format(copied_over_model.description)) + print("Model created on: {}\n".format(copied_over_model.created_on)) print("Doc types the model can recognize:") - for name, doc_type in model.doc_types.items(): + for name, doc_type in copied_over_model.doc_types.items(): print("\nDoc Type: '{}' which has the following fields:".format(name)) for field_name, field in doc_type.field_schema.items(): print("Field: '{}' has type '{}' and confidence score {}".format(