Skip to content

Commit abba1a4

Browse files
authored
Added media type to ontology
1 parent 1629d66 commit abba1a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/annotation_import/image.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@
581581
"### Step 2: Create/select an Ontology\n",
582582
"Your project should have the correct ontology setup with all the tools and classifications supported for your annotations, and the tool names and classification instructions should match the `name`/`instructions` fields in your annotations to ensure the correct feature schemas are matched.\n",
583583
"\n",
584-
"For example, when we create the bounding box annotation [above](https://colab.research.google.com/drive/1jxU4Lz1KODkI4xjNLzFEL7BbFX0DRgTU#scrollTo=mrjb8qY3z9VY&line=4&uniqifier=1), we provided the `name` as `polyline`. Now, when we setup our ontology, we must ensure that the name of my bounding box tool is also `polyline`. The same alignment must hold true for the other tools and classifications we create in our ontology.\n",
584+
"For example, when we create the bounding box annotation above, we provided the `name` as `polyline`. Now, when we setup our ontology, we must ensure that the name of my bounding box tool is also `polyline`. The same alignment must hold true for the other tools and classifications we create in our ontology.\n",
585585
"\n",
586586
"\n"
587587
],
@@ -664,7 +664,7 @@
664664
" name=\"polyline\"),]\n",
665665
")\n",
666666
"\n",
667-
"ontology = client.create_ontology(\"Ontology Image Annotations\", ontology_builder.asdict())\n"
667+
"ontology = client.create_ontology(\"Ontology Image Annotations\", ontology_builder.asdict(), media_type=MediaType.Image )\n"
668668
],
669669
"metadata": {
670670
"id": "ojonQWaO3Rfv"

0 commit comments

Comments
 (0)