From c2672d040f9b79a77610efd6cd9f591f2b047f77 Mon Sep 17 00:00:00 2001 From: kinaryml Date: Mon, 10 Oct 2022 08:19:12 -0700 Subject: [PATCH] Updated error message for the invalid model path test case --- mediapipe/tasks/python/test/vision/image_classifier_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/tasks/python/test/vision/image_classifier_test.py b/mediapipe/tasks/python/test/vision/image_classifier_test.py index b9098b55..336f1f30 100644 --- a/mediapipe/tasks/python/test/vision/image_classifier_test.py +++ b/mediapipe/tasks/python/test/vision/image_classifier_test.py @@ -146,7 +146,7 @@ class ImageClassifierTest(parameterized.TestCase): with self.assertRaisesRegex( ValueError, r"ExternalFile must specify at least one of 'file_content', " - r"'file_name' or 'file_descriptor_meta'."): + r"'file_name', 'file_pointer_meta' or 'file_descriptor_meta'."): base_options = _BaseOptions(model_asset_path='') options = _ImageClassifierOptions(base_options=base_options) _ImageClassifier.create_from_options(options)