Skip to content

Commit

Permalink
chore: comment source for mediapipe text solution wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
aannirajpatel committed Jan 5, 2024
1 parent 260e52f commit 7f5203c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MediaPipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FilesetResolver, TextEmbedder } from '@mediapipe/tasks-text';
let textEmbedder: TextEmbedder;

export async function createEmbedder() {
// Downloaded from https://cdn.jsdelivr.net/npm/@mediapipe/tasks-text@latest/wasm
const textFiles = await FilesetResolver.forTextTasks(process.env.NODE_ENV === 'production' ? 'https://www.aanpatel.tech/mediapipe-text-workshop' : process.env.PUBLIC_URL);
textEmbedder = await TextEmbedder.createFromOptions(
textFiles,
Expand Down

0 comments on commit 7f5203c

Please sign in to comment.