Skip to content

Commit 346fcca

Browse files
authored
Merge pull request #8 from code-kern-ai/upload-fix-rb
Fixes upload by disabling import of empty or whitespace labels
2 parents ff9fb01 + e135118 commit 346fcca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controller/transfer/record_transfer_manager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ def split_record_data_and_label_data(
237237
label_data = {}
238238
for imported_key, item in data_item.items():
239239
if "__" in imported_key:
240+
if (
241+
item.strip() == ""
242+
): # if a label is only consists of whitespaces or is empty continue
243+
continue
244+
240245
task_name = controller.labeling_task.util.infer_labeling_task_name(
241246
imported_key
242247
)

0 commit comments

Comments
 (0)