Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Moderate-Background-Blur/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ let token;

const config = {
transformerType: 'BackgroundBlur',
radius: BlurRadius.High
radius: BlurRadius.High,
// These two following properties added below are an example about how to provide
// the ML assets used by the library. If a copy of those is needed for any other
// custom hosting, please contact Vonage.
// For more information see https://vonage.github.io/ml-transformers-docs/docs/api/interfaces/MediaProcessorBaseConfig#modelasseturipath.
modelAssetUriPath: 'https://static.opentok.com/ml-transformers/v6.0.0/float16/vonage_selfie_segmenter.tflite',
// For more information see https://vonage.github.io/ml-transformers-docs/docs/api/interfaces/MediaProcessorBaseConfig#mediapipebaseassetsuri.
mediapipeBaseAssetsUri: 'https://static.opentok.com/ml-transformers/v6.0.0/mediapipe/0.10.20'
};

const transformStream = async (publisher) => {
Expand Down
Loading