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

Commit ad08588

Browse files
Update uploader.py
1 parent 9689529 commit ad08588

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

labelpandas/uploader.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ def create_upload_dict(client:labelboxClient, table: pandas.core.frame.DataFrame
140140
futures = []
141141
for row_dict in table_dict:
142142
futures.append(exc.submit(
143-
create_upload, row_dict, row_data_col, global_key_col, external_id_col, dataset_id_col, dataset_id,
144-
project_id_col, project_id, model_id_col, model_id, model_run_id_col, model_run_id,
143+
create_upload, row_dict, row_data_col, global_key_col, external_id_col,
144+
dataset_id_col, dataset_id, project_id_col, project_id,
145+
model_id_col, model_id, model_run_id_col, model_run_id,
145146
metadata_index, attachment_index, annotation_index, prediction_index,
146147
project_id_to_ontology_index, model_run_id_to_ontology_index, model_id_to_model_run_id,
147148
annotate_action, prediction_action,
@@ -165,9 +166,9 @@ def create_upload_dict(client:labelboxClient, table: pandas.core.frame.DataFrame
165166
def create_upload(row_dict:dict, row_data_col:str, global_key_col:str, external_id_col:str,
166167
dataset_id_col:str, dataset_id:str, project_id_col:str, project_id:str,
167168
model_id_col:str, model_id:str, model_run_id_col:str, model_run_id:str,
168-
metadata_index:dict, attachment_index:dict, annotation_index:dict,
169-
project_id_to_ontology_index:dict, model_run_id_to_ontology_index:dict,
170-
model_id_to_model_run_id:dict, annotate_action:bool, prediction_action,
169+
metadata_index:dict, attachment_index:dict, annotation_index:dict, prediction_index:dict,
170+
project_id_to_ontology_index:dict, model_run_id_to_ontology_index:dict, model_id_to_model_run_id:dict,
171+
annotate_action:bool, prediction_action:bool,
171172
metadata_name_key_to_schema:dict, upload_method:str, mask_method:str,
172173
divider:str, verbose:bool):
173174
""" Takes a single table row as-a-dictinary and returns a dictionary where:

0 commit comments

Comments
 (0)