Skip to content

Commit

Permalink
fix: fix get_type call
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Jul 11, 2024
1 parent 1e15d72 commit 18181bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robotoff/insights/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,8 @@ def get_nutrition_table_predictions(
.where(
ImageModel.barcode == product_id.barcode,
ImageModel.server_type == product_id.server_type.name,
ImagePrediction.model_name == ObjectDetectionModel.get_type(),
ImagePrediction.model_name
== ObjectDetectionModel.nutrition_table_yolo.get_type(),
ImagePrediction.max_confidence >= min_score,
)
.tuples()
Expand Down

0 comments on commit 18181bb

Please sign in to comment.