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 b680a48
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MediaPipe Text Workshop

Try it out! https://aannirajpatel.github.io/mediapipe-text-workshop/
Try it out! https://aanpatel.tech/mediapipe-text-workshop/

This project demonstrates the use of Google's MediaPipe Solutions for generating Text Embeddings to categorize tasks in a smart todo list app.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mediapipe-text-workshop",
"homepage": "https://aannirajpatel.github.io/mediapipe-text-workshop",
"homepage": "https://aanpatel.tech/mediapipe-text-workshop",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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://aanpatel.tech/mediapipe-text-workshop' : process.env.PUBLIC_URL);
textEmbedder = await TextEmbedder.createFromOptions(
textFiles,
{
Expand Down

0 comments on commit b680a48

Please sign in to comment.