From aa1961e233a9ac8908f6c66b73a10d2394dcdcde Mon Sep 17 00:00:00 2001 From: nallave <116003489+nallave@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:03:50 +0530 Subject: [PATCH 1/2] Update store.js --- demos/palm/web/quick-prompt/src/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/palm/web/quick-prompt/src/store.js b/demos/palm/web/quick-prompt/src/store.js index a6179db56..a0041f131 100644 --- a/demos/palm/web/quick-prompt/src/store.js +++ b/demos/palm/web/quick-prompt/src/store.js @@ -208,7 +208,7 @@ const useStore = create((set, get) => ({ actions.playSound('sounds/forbidden-word.mp3') - // Sort matches by their indicies in the passed `text` so the words in `forbiddenPopup` appear in the correct order + // Sort matches by their indices in the passed `text` so the words in `forbiddenPopup` appear in the correct order matches.sort((a, b) => { const aIndex = text.indexOf(a) const bIndex = text.indexOf(b) From 56ca7c42e7d2982438f16ef22abef38f6e5ec7ea Mon Sep 17 00:00:00 2001 From: nallave <116003489+nallave@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:08:58 +0530 Subject: [PATCH 2/2] typos --- demos/palm/web/talking-character/src/apis/textToSpeech.ts | 2 +- .../third_party/mediapipe/web/graph_runner/graph_runner.ts | 2 +- .../web/textfx/src/components/generic/outputCard/outputCard.tsx | 2 +- .../components/generic/outputSection/outputSection.module.scss | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/palm/web/talking-character/src/apis/textToSpeech.ts b/demos/palm/web/talking-character/src/apis/textToSpeech.ts index 61bd83d41..714c8b7a4 100644 --- a/demos/palm/web/talking-character/src/apis/textToSpeech.ts +++ b/demos/palm/web/talking-character/src/apis/textToSpeech.ts @@ -211,7 +211,7 @@ const useTextToSpeech = const convert = async (text: string) => { - // console.log('Lamda response: ', text); + // console.log('Lambda response: ', text); // Use default voice for demo const voice = getDefaultAvatarVoice(); if (!text || !voice?.cloudTtsVoice && !voice?.winslow) { diff --git a/demos/palm/web/talking-character/third_party/mediapipe/web/graph_runner/graph_runner.ts b/demos/palm/web/talking-character/third_party/mediapipe/web/graph_runner/graph_runner.ts index f09336fbe..5e846ac90 100644 --- a/demos/palm/web/talking-character/third_party/mediapipe/web/graph_runner/graph_runner.ts +++ b/demos/palm/web/talking-character/third_party/mediapipe/web/graph_runner/graph_runner.ts @@ -484,7 +484,7 @@ export class GraphRunner { * format). * * Consumers must deserialize the binary representation themselves as this - * avoids addding a direct dependency on the Protobuf JSPB target in the graph + * avoids adding a direct dependency on the Protobuf JSPB target in the graph * library. */ getCalculatorGraphConfig( diff --git a/demos/palm/web/textfx/src/components/generic/outputCard/outputCard.tsx b/demos/palm/web/textfx/src/components/generic/outputCard/outputCard.tsx index 87b0027d9..82a103f4a 100644 --- a/demos/palm/web/textfx/src/components/generic/outputCard/outputCard.tsx +++ b/demos/palm/web/textfx/src/components/generic/outputCard/outputCard.tsx @@ -462,7 +462,7 @@ const OutputCard = ({output}: {output: IMacroOutput}) => { selected={viewAll} onClick={e => { if (cardHeight === 'auto') { - // Change it back from auto befor animating + // Change it back from auto before animating setCardHeight(`${cardSizerRef.current?.offsetHeight}px`) } setViewAll(e) diff --git a/demos/palm/web/textfx/src/components/generic/outputSection/outputSection.module.scss b/demos/palm/web/textfx/src/components/generic/outputSection/outputSection.module.scss index 2c5684ff3..e00c57f07 100644 --- a/demos/palm/web/textfx/src/components/generic/outputSection/outputSection.module.scss +++ b/demos/palm/web/textfx/src/components/generic/outputSection/outputSection.module.scss @@ -140,7 +140,7 @@ :global(.masonryGrid) { display: flex; - margin-left: -13px; // Gutter size offest + margin-left: -13px; // Gutter size offset width: auto; }