Skip to content

Commit

Permalink
[formrecognizer] Copy sample fix (#24902)
Browse files Browse the repository at this point in the history
* fix var naming

* enable copy samples for live testing
  • Loading branch information
catalinaperalta authored Jun 18, 2022
1 parent 40c0f81 commit cd545f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions scripts/devops_tasks/test_run_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cd545f8

Please sign in to comment.