Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 6f6aa0f

Browse files
Update client.py
1 parent e7fac94 commit 6f6aa0f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

labelpandas/client.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,23 +153,22 @@ def create_data_rows_from_table(
153153
skip_duplicates=skip_duplicates, divider=divider, verbose=verbose
154154
)
155155

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-
164156
# Bath to project attempt using labelbase.uploader.batch_rows_to_project
165157
if actions["batch"]:
166158
batch_to_project_results = batch_rows_to_project(
167159
client=self.lb_client, upload_dict=upload_dict,
168-
global_key_to_data_row_id=global_key_to_data_row_id,
169160
priority=priority, verbose=verbose
170161
)
171162
else:
172163
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+
)
173172

174173
# Annotation upload attempt using labelbase.uploader.batch_upload_annotations
175174
if actions["annotate"]:

0 commit comments

Comments
 (0)