This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -153,23 +153,22 @@ def create_data_rows_from_table(
153
153
skip_duplicates = skip_duplicates , divider = divider , verbose = verbose
154
154
)
155
155
156
- # If performing actions that require data row IDs, we pull them here using labelbase.uploader.create_global_key_to_data_row_id_dict
157
- if actions ["batch" ] or actions ["annotate" ] or actions ["prediction" ]:
158
- all_global_keys = list (upload_dict .keys ())
159
- print (all_global_keys )
160
- global_key_to_data_row_id = create_global_key_to_data_row_id_dict (
161
- client = self .lb_client , global_keys = all_global_keys
162
- )
163
-
164
156
# Bath to project attempt using labelbase.uploader.batch_rows_to_project
165
157
if actions ["batch" ]:
166
158
batch_to_project_results = batch_rows_to_project (
167
159
client = self .lb_client , upload_dict = upload_dict ,
168
- global_key_to_data_row_id = global_key_to_data_row_id ,
169
160
priority = priority , verbose = verbose
170
161
)
171
162
else :
172
163
batch_to_project_results = []
164
+
165
+ # If performing actions that require data row IDs, we pull them here using labelbase.uploader.create_global_key_to_data_row_id_dict
166
+ if actions ["annotate" ] or actions ["prediction" ]:
167
+ all_global_keys = list (upload_dict .keys ())
168
+ print (all_global_keys )
169
+ global_key_to_data_row_id = create_global_key_to_data_row_id_dict (
170
+ client = self .lb_client , global_keys = all_global_keys
171
+ )
173
172
174
173
# Annotation upload attempt using labelbase.uploader.batch_upload_annotations
175
174
if actions ["annotate" ]:
You can’t perform that action at this time.
0 commit comments