Skip to content

Commit 0e36040

Browse files
author
Ubuntu
committed
Fix predict
1 parent 7512c16 commit 0e36040

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

nucleus/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,6 @@ def create_model_run(self, dataset_id: str, payload: dict) -> ModelRun:
734734

735735
def predict(
736736
self,
737-
model_run_id: Optional[str],
738-
model_id: Optional[str],
739-
dataset_id: Optional[str],
740737
annotations: List[
741738
Union[
742739
BoxPrediction,
@@ -745,7 +742,10 @@ def predict(
745742
SegmentationPrediction,
746743
]
747744
],
748-
update: bool,
745+
model_run_id: Optional[str] = None,
746+
model_id: Optional[str] = None,
747+
dataset_id: Optional[str] = None,
748+
update: bool = False,
749749
batch_size: int = 5000,
750750
):
751751
"""
@@ -822,8 +822,8 @@ def predict(
822822

823823
agg_response = {
824824
MODEL_RUN_ID_KEY: model_run_id,
825-
PREDICTIONS_PROCESSED_KEY: predictions_ignored,
826-
PREDICTIONS_IGNORED_KEY: predictions_processed,
825+
PREDICTIONS_PROCESSED_KEY: predictions_processed,
826+
PREDICTIONS_IGNORED_KEY: predictions_ignored,
827827
ERRORS_KEY: errors,
828828
}
829829
return agg_response

nucleus/model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def predict(
127127
else:
128128
return self._client.predict(
129129
model_run_id=self.model_run_id,
130-
annotation=annotations,
130+
annotations=annotations,
131131
update=update,
132132
)
133133

0 commit comments

Comments
 (0)