Skip to content

Commit

Permalink
fix: resolve CORS for deployed app
Browse files Browse the repository at this point in the history
  • Loading branch information
aannirajpatel committed Jan 3, 2024
1 parent 245de51 commit 5f86182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaPipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FilesetResolver, TextEmbedder } from '@mediapipe/tasks-text';
let textEmbedder: TextEmbedder;

export async function createEmbedder() {
const textFiles = await FilesetResolver.forTextTasks(process.env.NODE_ENV === 'production' ? 'https://aannirajpatel.github.io/mediapipe-text-workshop/wasm/' : process.env.PUBLIC_URL + "/wasm/");
const textFiles = await FilesetResolver.forTextTasks(process.env.NODE_ENV === 'production' ? 'https://aannirajpatel.github.io/mediapipe-text-workshop/wasm' : process.env.PUBLIC_URL + "/wasm/");
textEmbedder = await TextEmbedder.createFromOptions(
textFiles,
{
Expand Down

0 comments on commit 5f86182

Please sign in to comment.