Skip to content

Commit 8bd16d8

Browse files
authored
Fix conversational annotation import example notebook
2 parents 65e7e72 + 38b6536 commit 8bd16d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/annotation_import/conversational.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
"outputs": [],
206206
"source": [
207207
"# Create Labelbox project\n",
208-
"mal_project = client.create_project(name=\"conversational_mal_project\", media_type=MediaType.Document)\n",
208+
"mal_project = client.create_project(name=\"conversational_mal_project\", media_type=MediaType.Conversational)\n",
209209
"\n",
210210
"# Create one Labelbox dataset\n",
211211
"dataset = client.create_dataset(name=\"conversational_annotation_import_demo_dataset\")\n",
@@ -220,7 +220,8 @@
220220
"editor = next(client.get_labeling_frontends(where=LabelingFrontend.name == \"Editor\")) # Unless using a custom editor, do not modify this\n",
221221
"\n",
222222
"mal_project.setup(editor, ontology_builder.asdict()) # Connect your ontology and editor to your MAL project\n",
223-
"mal_project.datasets.connect(dataset) # Connect your dataset to your MAL project"
223+
"\n",
224+
"mal_project.create_batch('initial-batch', [data_row]) # Create a batch to start labelling"
224225
]
225226
},
226227
{

0 commit comments

Comments
 (0)