Internal change
PiperOrigin-RevId: 502764352
This commit is contained in:
parent
0b97c6e67d
commit
d5e60eb658
|
@ -10,15 +10,24 @@ load(
|
||||||
|
|
||||||
package(default_visibility = ["//mediapipe/tasks:internal"])
|
package(default_visibility = ["//mediapipe/tasks:internal"])
|
||||||
|
|
||||||
|
AUDIO_LIBS = [
|
||||||
|
"//mediapipe/tasks/web/audio/audio_classifier",
|
||||||
|
"//mediapipe/tasks/web/audio/audio_embedder",
|
||||||
|
"//mediapipe/tasks/web/core:fileset_resolver",
|
||||||
|
]
|
||||||
|
|
||||||
mediapipe_ts_library(
|
mediapipe_ts_library(
|
||||||
name = "audio_lib",
|
name = "audio_lib",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = AUDIO_LIBS,
|
||||||
"//mediapipe/tasks/web/audio/audio_classifier",
|
)
|
||||||
"//mediapipe/tasks/web/audio/audio_embedder",
|
|
||||||
"//mediapipe/tasks/web/core:fileset_resolver",
|
mediapipe_ts_library(
|
||||||
],
|
name = "audio_types",
|
||||||
|
srcs = ["types.ts"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
deps = AUDIO_LIBS,
|
||||||
)
|
)
|
||||||
|
|
||||||
mediapipe_files(srcs = [
|
mediapipe_files(srcs = [
|
||||||
|
|
19
mediapipe/tasks/web/audio/types.ts
Normal file
19
mediapipe/tasks/web/audio/types.ts
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Copyright 2023 The MediaPipe Authors. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from '../../../tasks/web/audio/audio_classifier/audio_classifier';
|
||||||
|
export * from '../../../tasks/web/audio/audio_embedder/audio_embedder';
|
||||||
|
export * from '../../../tasks/web/core/fileset_resolver';
|
|
@ -17,15 +17,24 @@ mediapipe_files(srcs = [
|
||||||
"wasm/text_wasm_nosimd_internal.wasm",
|
"wasm/text_wasm_nosimd_internal.wasm",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
TEXT_LIBS = [
|
||||||
|
"//mediapipe/tasks/web/core:fileset_resolver",
|
||||||
|
"//mediapipe/tasks/web/text/text_classifier",
|
||||||
|
"//mediapipe/tasks/web/text/text_embedder",
|
||||||
|
]
|
||||||
|
|
||||||
mediapipe_ts_library(
|
mediapipe_ts_library(
|
||||||
name = "text_lib",
|
name = "text_lib",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = TEXT_LIBS,
|
||||||
"//mediapipe/tasks/web/core:fileset_resolver",
|
)
|
||||||
"//mediapipe/tasks/web/text/text_classifier",
|
|
||||||
"//mediapipe/tasks/web/text/text_embedder",
|
mediapipe_ts_library(
|
||||||
],
|
name = "text_types",
|
||||||
|
srcs = ["types.ts"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
deps = TEXT_LIBS,
|
||||||
)
|
)
|
||||||
|
|
||||||
rollup_bundle(
|
rollup_bundle(
|
||||||
|
|
19
mediapipe/tasks/web/text/types.ts
Normal file
19
mediapipe/tasks/web/text/types.ts
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* Copyright 2023 The MediaPipe Authors. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from '../../../tasks/web/core/fileset_resolver';
|
||||||
|
export * from '../../../tasks/web/text/text_classifier/text_classifier';
|
||||||
|
export * from '../../../tasks/web/text/text_embedder/text_embedder';
|
|
@ -17,18 +17,27 @@ mediapipe_files(srcs = [
|
||||||
"wasm/vision_wasm_nosimd_internal.wasm",
|
"wasm/vision_wasm_nosimd_internal.wasm",
|
||||||
])
|
])
|
||||||
|
|
||||||
mediapipe_ts_library(
|
VISION_LIBS = [
|
||||||
name = "vision_lib",
|
|
||||||
srcs = ["index.ts"],
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
deps = [
|
|
||||||
"//mediapipe/tasks/web/core:fileset_resolver",
|
"//mediapipe/tasks/web/core:fileset_resolver",
|
||||||
"//mediapipe/tasks/web/vision/gesture_recognizer",
|
"//mediapipe/tasks/web/vision/gesture_recognizer",
|
||||||
"//mediapipe/tasks/web/vision/hand_landmarker",
|
"//mediapipe/tasks/web/vision/hand_landmarker",
|
||||||
"//mediapipe/tasks/web/vision/image_classifier",
|
"//mediapipe/tasks/web/vision/image_classifier",
|
||||||
"//mediapipe/tasks/web/vision/image_embedder",
|
"//mediapipe/tasks/web/vision/image_embedder",
|
||||||
"//mediapipe/tasks/web/vision/object_detector",
|
"//mediapipe/tasks/web/vision/object_detector",
|
||||||
],
|
]
|
||||||
|
|
||||||
|
mediapipe_ts_library(
|
||||||
|
name = "vision_lib",
|
||||||
|
srcs = ["index.ts"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
deps = VISION_LIBS,
|
||||||
|
)
|
||||||
|
|
||||||
|
mediapipe_ts_library(
|
||||||
|
name = "vision_types",
|
||||||
|
srcs = ["types.ts"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
deps = VISION_LIBS,
|
||||||
)
|
)
|
||||||
|
|
||||||
rollup_bundle(
|
rollup_bundle(
|
||||||
|
|
22
mediapipe/tasks/web/vision/types.ts
Normal file
22
mediapipe/tasks/web/vision/types.ts
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/**
|
||||||
|
* Copyright 2023 The MediaPipe Authors. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from '../../../tasks/web/core/fileset_resolver';
|
||||||
|
export * from '../../../tasks/web/vision/gesture_recognizer/gesture_recognizer';
|
||||||
|
export * from '../../../tasks/web/vision/hand_landmarker/hand_landmarker';
|
||||||
|
export * from '../../../tasks/web/vision/image_classifier/image_classifier';
|
||||||
|
export * from '../../../tasks/web/vision/image_embedder/image_embedder';
|
||||||
|
export * from '../../../tasks/web/vision/object_detector/object_detector';
|
Loading…
Reference in New Issue
Block a user