Skip to content

Commit

Permalink
fix: fix ImagePrediction.model_name
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Jul 12, 2024
1 parent 18181bb commit 4a9e1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/insights/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def run_object_detection_model(
return ImagePrediction.create(
image=image_model,
type="object_detection",
model_name=model_name.value,
model_name=model_name.get_type(),
model_version=OBJECT_DETECTION_MODEL_VERSION[model_name],
data={"objects": data},
timestamp=timestamp,
Expand Down

0 comments on commit 4a9e1a6

Please sign in to comment.