From 3bbc0e9af9150797142295f47b1d87a0403d8f44 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Tue, 22 Nov 2022 17:34:58 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 490375672 --- mediapipe/tasks/web/BUILD | 18 +++--------------- mediapipe/tasks/web/audio.ts | 3 +-- mediapipe/tasks/web/text.ts | 3 +-- mediapipe/tasks/web/vision.ts | 6 +----- 4 files changed, 6 insertions(+), 24 deletions(-) diff --git a/mediapipe/tasks/web/BUILD b/mediapipe/tasks/web/BUILD index af76a1fe8..7e5d02892 100644 --- a/mediapipe/tasks/web/BUILD +++ b/mediapipe/tasks/web/BUILD @@ -24,10 +24,7 @@ mediapipe_files(srcs = [ mediapipe_ts_library( name = "audio_lib", srcs = ["audio.ts"], - deps = [ - "//mediapipe/tasks/web/audio/audio_classifier", - "//mediapipe/tasks/web/audio/audio_embedder", - ], + deps = ["//mediapipe/tasks/web/audio:audio_lib"], ) rollup_bundle( @@ -69,10 +66,7 @@ pkg_npm( mediapipe_ts_library( name = "text_lib", srcs = ["text.ts"], - deps = [ - "//mediapipe/tasks/web/text/text_classifier", - "//mediapipe/tasks/web/text/text_embedder", - ], + deps = ["//mediapipe/tasks/web/text:text_lib"], ) rollup_bundle( @@ -114,13 +108,7 @@ pkg_npm( mediapipe_ts_library( name = "vision_lib", srcs = ["vision.ts"], - deps = [ - "//mediapipe/tasks/web/vision/gesture_recognizer", - "//mediapipe/tasks/web/vision/hand_landmarker", - "//mediapipe/tasks/web/vision/image_classifier", - "//mediapipe/tasks/web/vision/image_embedder", - "//mediapipe/tasks/web/vision/object_detector", - ], + deps = ["//mediapipe/tasks/web/vision:vision_lib"], ) rollup_bundle( diff --git a/mediapipe/tasks/web/audio.ts b/mediapipe/tasks/web/audio.ts index 056426f50..8c522efcc 100644 --- a/mediapipe/tasks/web/audio.ts +++ b/mediapipe/tasks/web/audio.ts @@ -14,8 +14,7 @@ * limitations under the License. */ -import {AudioClassifier as AudioClassifierImpl} from '../../tasks/web/audio/audio_classifier/audio_classifier'; -import {AudioEmbedder as AudioEmbedderImpl} from '../../tasks/web/audio/audio_embedder/audio_embedder'; +import {AudioClassifier as AudioClassifierImpl, AudioEmbedder as AudioEmbedderImpl} from '../../tasks/web/audio/index'; // Declare the variables locally so that Rollup in OSS includes them explcilty // as exports. diff --git a/mediapipe/tasks/web/text.ts b/mediapipe/tasks/web/text.ts index 39d101237..8f15075c5 100644 --- a/mediapipe/tasks/web/text.ts +++ b/mediapipe/tasks/web/text.ts @@ -14,8 +14,7 @@ * limitations under the License. */ -import {TextClassifier as TextClassifierImpl} from '../../tasks/web/text/text_classifier/text_classifier'; -import {TextEmbedder as TextEmbedderImpl} from '../../tasks/web/text/text_embedder/text_embedder'; +import {TextClassifier as TextClassifierImpl, TextEmbedder as TextEmbedderImpl} from '../../tasks/web/text/index'; // Declare the variables locally so that Rollup in OSS includes them explcilty // as exports. diff --git a/mediapipe/tasks/web/vision.ts b/mediapipe/tasks/web/vision.ts index 4e4fab43f..74a056464 100644 --- a/mediapipe/tasks/web/vision.ts +++ b/mediapipe/tasks/web/vision.ts @@ -14,11 +14,7 @@ * limitations under the License. */ -import {GestureRecognizer as GestureRecognizerImpl} from '../../tasks/web/vision/gesture_recognizer/gesture_recognizer'; -import {HandLandmarker as HandLandmarkerImpl} from '../../tasks/web/vision/hand_landmarker/hand_landmarker'; -import {ImageClassifier as ImageClassifierImpl} from '../../tasks/web/vision/image_classifier/image_classifier'; -import {ImageEmbedder as ImageEmbedderImpl} from '../../tasks/web/vision/image_embedder/image_embedder'; -import {ObjectDetector as ObjectDetectorImpl} from '../../tasks/web/vision/object_detector/object_detector'; +import {GestureRecognizer as GestureRecognizerImpl, HandLandmarker as HandLandmarkerImpl, ImageClassifier as ImageClassifierImpl, ImageEmbedder as ImageEmbedderImpl, ObjectDetector as ObjectDetectorImpl} from '../../tasks/web/vision/index'; // Declare the variables locally so that Rollup in OSS includes them explcilty // as exports.