Skip to content

Commit 1fb42f7

Browse files
authored
[AL-5142] Add support for predictions param (#1056)
1 parent 78b7ceb commit 1fb42f7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

labelbox/schema/export_params.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ class CatalogExportParams(DataRowParams):
3232

3333

3434
class ModelRunExportParams(DataRowParams):
35-
# TODO: Add model run fields
36-
pass
35+
predictions: Optional[bool]

labelbox/schema/model_run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ def export_v2(self,
531531
_params.get('metadata_fields', False),
532532
"includeDataRowDetails":
533533
_params.get('data_row_details', False),
534+
"includePredictions":
535+
_params.get('predictions', False),
534536
},
535537
}
536538
}

tests/integration/annotation_import/test_model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def get_model_run_status():
185185
def test_model_run_export_v2(model_run_with_data_rows, configured_project):
186186
task_name = "test_task"
187187
media_attributes = True
188-
params = {"media_attributes": media_attributes}
188+
params = {"media_attributes": media_attributes, "predictions": True}
189189
task_results = _model_run_export_v2_results(model_run_with_data_rows,
190190
task_name, params)
191191
label_ids = [label.uid for label in configured_project.labels()]

0 commit comments

Comments
 (0)