File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
examples/annotation_import Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 " ,
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 {
You can’t perform that action at this time.
0 commit comments