From 28b9b8d8a37f55089210a725ef444fe7f20114d5 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 27 Apr 2023 18:44:51 -0700 Subject: [PATCH] Open-sources LanguageDetector model. PiperOrigin-RevId: 527745108 --- mediapipe/tasks/testdata/text/BUILD | 6 ++++++ third_party/external_files.bzl | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/testdata/text/BUILD b/mediapipe/tasks/testdata/text/BUILD index f1f60afdc..f1f0dc814 100644 --- a/mediapipe/tasks/testdata/text/BUILD +++ b/mediapipe/tasks/testdata/text/BUILD @@ -29,6 +29,7 @@ mediapipe_files(srcs = [ "30k-clean.model", "albert_with_metadata.tflite", "bert_text_classifier.tflite", + "language_detector.tflite", "mobilebert_embedding_with_metadata.tflite", "mobilebert_with_metadata.tflite", "regex_one_embedding_with_metadata.tflite", @@ -105,3 +106,8 @@ filegroup( name = "universal_sentence_encoder_qa", srcs = ["universal_sentence_encoder_qa_with_metadata.tflite"], ) + +filegroup( + name = "language_detector", + srcs = ["language_detector.tflite"], +) diff --git a/third_party/external_files.bzl b/third_party/external_files.bzl index a57664e09..ff338bae2 100644 --- a/third_party/external_files.bzl +++ b/third_party/external_files.bzl @@ -276,8 +276,8 @@ def external_files(): http_file( name = "com_google_mediapipe_efficientdet_lite0_fp16_no_nms_tflite", - sha256 = "bcda125c96d3767bca894c8cbe7bc458379c9974c9fd8bdc6204e7124a74082a", - urls = ["https://storage.googleapis.com/mediapipe-assets/efficientdet_lite0_fp16_no_nms.tflite?generation=1682627837744424"], + sha256 = "237a58389081333e5cf4154e42b593ce7dd357445536fcaf4ca5bc51c2c50f1c", + urls = ["https://storage.googleapis.com/mediapipe-assets/efficientdet_lite0_fp16_no_nms.tflite?generation=1682632067597216"], ) http_file(