Skip to content

Commit

Permalink
add model version for prediction (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
baslia authored Nov 21, 2024
1 parent fb59153 commit 1db1a63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ml_utils/ml_utils_cli/cli/apps/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ def add_prediction(
help="Raise an error if image download fails"
),
] = True,
model_version: Annotated[
Optional[str],
typer.Option(help="Model version to use for the prediction"),
] = None,
):
"""Add predictions as pre-annotations to Label Studio tasks,
for an object detection model running on Triton Inference Server."""
Expand Down Expand Up @@ -297,6 +301,7 @@ def add_prediction(
ls.predictions.create(
task=task.id,
result=label_studio_result,
model_version=model_version,
)


Expand Down

0 comments on commit 1db1a63

Please sign in to comment.