Skip to content

Commit 540e5cc

Browse files
authored
Latest updates
1. Remove "s" from uploads 2. Remove list from inside list comprehension
1 parent 61c868e commit 540e5cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/model_assisted_labeling/video_mal.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@
162162
"\n",
163163
"# # Create one Labelbox dataset\n",
164164
"dataset = client.create_dataset(name=\"video_annotation_import_demo_dataset\")\n",
165-
"uploads = {\n",
165+
"upload = {\n",
166166
" \"row_data\":\"https://storage.googleapis.com/labelbox-datasets/video-sample-data/sample-video-2.mp4\",\n",
167167
" \"global_key\": \"TEST-ID-%id\" % uuid.uuid1()\n",
168168
"}\n",
169169
"\n",
170-
"data_row = dataset.create_data_row(uploads)\n",
170+
"data_row = dataset.create_data_row(upload)\n",
171171
"print(data_row)\n",
172172
"\n",
173173
"\n",
@@ -191,7 +191,7 @@
191191
"cell_type": "code",
192192
"source": [
193193
"# We need the data row ID to create a batch\n",
194-
"batch_datarows = [dr.uid for dr in list(dataset.export_data_rows())]\n",
194+
"batch_datarows = [dr.uid for dr in dataset.export_data_rows()]\n",
195195
"\n",
196196
"# Create a batch to send to your MAL project\n",
197197
"batch_mal = mal_project.create_batch(\n",

0 commit comments

Comments
 (0)