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

Commit 57d9c1b

Browse files
Update client.py
1 parent a8e5da9 commit 57d9c1b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

labelpandas/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,22 @@ def create_data_rows_from_table(
110110
project_id_to_upload_dict = connector.create_annotation_upload_dict(
111111
client=self.lb_client, table=table, table_dict=table_dict,
112112
row_data_col=row_data_col, global_key_col=global_key_col, project_id_col=project_id_col,
113-
annotation_index=annotation_index, divider=divider, verbose=verbose
113+
project_id=project_id, annotation_index=annotation_index, global_key_to_data_row_id=global_key_to_data_row_id,
114+
divider=divider, verbose=verbose
114115
)
115116

116117
# Upload your annotations to Labelbox, if applicable
117118
annotation_upload_results = uploader.batch_upload_annotations(
118119
client=self.lb_client, project_id_to_upload_dict=project_id_to_upload_dict, how=upload_method, verbose=verbose
119120
)
120121

121-
else:
122+
else: # If no proper upload_method is provided or annotation_index is generated, we don't upload annotations
122123
annotation_upload_results = []
123-
124-
125-
else:
124+
125+
else: # If project ids are not provided, we don't batch data rows to projects or upload annotations
126126
batch_to_project_results = []
127127
annotation_upload_results = []
128-
128+
129129
return {
130130
"data_row_upload_results" : data_row_upload_results,
131131
"batch_to_project_results" : batch_to_project_results,

0 commit comments

Comments
 (0)