Skip to content

Commit 630ca7b

Browse files
authored
Merge branch 'google:main' into main
2 parents 991aead + 87d4752 commit 630ca7b

File tree

12 files changed

+373
-241
lines changed

12 files changed

+373
-241
lines changed

demos/palm/web/quick-prompt/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const useStore = create((set, get) => ({
208208

209209
actions.playSound('sounds/forbidden-word.mp3')
210210

211-
// Sort matches by their indicies in the passed `text` so the words in `forbiddenPopup` appear in the correct order
211+
// Sort matches by their indices in the passed `text` so the words in `forbiddenPopup` appear in the correct order
212212
matches.sort((a, b) => {
213213
const aIndex = text.indexOf(a)
214214
const bIndex = text.indexOf(b)

demos/palm/web/talking-character/src/apis/textToSpeech.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const useTextToSpeech =
211211

212212
const convert =
213213
async (text: string) => {
214-
// console.log('Lamda response: ', text);
214+
// console.log('Lambda response: ', text);
215215
// Use default voice for demo
216216
const voice = getDefaultAvatarVoice();
217217
if (!text || !voice?.cloudTtsVoice && !voice?.winslow) {

demos/palm/web/talking-character/third_party/mediapipe/web/graph_runner/graph_runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ export class GraphRunner {
484484
* format).
485485
*
486486
* Consumers must deserialize the binary representation themselves as this
487-
* avoids addding a direct dependency on the Protobuf JSPB target in the graph
487+
* avoids adding a direct dependency on the Protobuf JSPB target in the graph
488488
* library.
489489
*/
490490
getCalculatorGraphConfig(

demos/palm/web/textfx/src/components/generic/outputCard/outputCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ const OutputCard = ({output}: {output: IMacroOutput}) => {
462462
selected={viewAll}
463463
onClick={e => {
464464
if (cardHeight === 'auto') {
465-
// Change it back from auto befor animating
465+
// Change it back from auto before animating
466466
setCardHeight(`${cardSizerRef.current?.offsetHeight}px`)
467467
}
468468
setViewAll(e)

demos/palm/web/textfx/src/components/generic/outputSection/outputSection.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140

141141
:global(.masonryGrid) {
142142
display: flex;
143-
margin-left: -13px; // Gutter size offest
143+
margin-left: -13px; // Gutter size offset
144144
width: auto;
145145
}
146146

examples/gemini/node/flutter_theme_agent/src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ available color properties on a ColorScheme instead of using deprecated properti
7575
like Color Swatch.
7676
7777
${COMMENT_LABEL}
78-
Construct a ThemeData object with a pastel pink color palette that is asthetically
78+
Construct a ThemeData object with a pastel pink color palette that is aesthetically
7979
pleasing and a the CardTheme that removes elevation and adds a 2px black border.
8080
${CODE_LABEL}
8181
ThemeData(

examples/gemini/python/docs-agent/docs_agent/interfaces/chatbot/chatui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def debugs(filename):
278278
return bp
279279

280280

281-
# Go through the `seatch_result` object returned from the AQA model
281+
# Go through the `search_result` object returned from the AQA model
282282
# and extract context.
283283
def extract_context_from_search_result(search_result):
284284
context = ""
@@ -292,7 +292,7 @@ def extract_context_from_search_result(search_result):
292292

293293

294294
# Construct a set of prompts using the user question, send the prompts to
295-
# the lanaguage model, receive responses, and present them into a page.
295+
# the language model, receive responses, and present them into a page.
296296
# Use template to specify a custom template for the classic web UI
297297
def ask_model(question, agent, template: str = "chatui/index.html"):
298298
# Returns a built context, a total token count of the context and an array

examples/gemini/python/docs-agent/docs_agent/interfaces/cli/cli_helpme.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def helpme(
327327
this_file = os.path.realpath(os.path.join(os.getcwd(), file))
328328
this_output = ""
329329

330-
# if the `--cont` flag is set, inlcude the previous exchanges as additional context.
330+
# if the `--cont` flag is set, include the previous exchanges as additional context.
331331
context_file = None
332332
if cont:
333333
context_file = history_file
@@ -432,7 +432,7 @@ def helpme(
432432
if file_ext is None or file_ext == "":
433433
file_type = "All types"
434434

435-
# if the `--cont` flag is set, inlcude the previous exchanges as additional context.
435+
# if the `--cont` flag is set, include the previous exchanges as additional context.
436436
context_file = None
437437
if cont:
438438
context_file = history_file
@@ -732,7 +732,7 @@ def helpme(
732732
print(f"Failed to write the output to file: {out}")
733733

734734
elif helpme_mode == "TERMINAL_OUTPUT":
735-
# Terminal output mode, which reads the terminal ouput as context.
735+
# Terminal output mode, which reads the terminal output as context.
736736
terminal_output = ""
737737
# Set the default filename created from the `script` command.
738738
file_path = "/tmp/docs_agent_console_input"

examples/gemini/python/docs-agent/pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ single-line-if-stmt=yes
277277
max-module-lines=99999
278278

279279
# String used as indentation unit. The internal Google style guide mandates 2
280-
# spaces. Google's externaly-published style guide says 4, consistent with
280+
# spaces. Google's externally-published style guide says 4, consistent with
281281
# PEP 8. Here, we use 2 spaces, for conformity with many open-sourced Google
282282
# projects (like TensorFlow).
283283
indent-string=' '

0 commit comments

Comments
 (0)