Skip to content

Commit d348cfe

Browse files
docs: fix minor typos in image generation description (#32375)
Description: Fixed minor typos in the `google_imagen.ipynb` integration notebook related to image generation prompt formatting. No functional changes were made β€” just a documentation correction to improve clarity.
1 parent 84c5048 commit d348cfe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

β€Ždocs/docs/integrations/tools/google_imagen.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"- [VertexAIImageEditorChat](#image-editing) : Edit an entire uploaded or generated image with a text prompt.\n",
2626
"- [VertexAIImageCaptioning](#image-captioning) : Get text descriptions of images with visual captioning.\n",
2727
"- [VertexAIVisualQnAChat](#visual-question-answering-vqa) : Get answers to a question about an image with Visual Question Answering (VQA).\n",
28-
" * NOTE : Currently we support only only single-turn chat for Visual QnA (VQA)"
28+
" * NOTE : Currently we support only single-turn chat for Visual QnA (VQA)"
2929
]
3030
},
3131
{
@@ -48,11 +48,11 @@
4848
},
4949
{
5050
"cell_type": "code",
51-
"execution_count": 3,
51+
"execution_count": null,
5252
"metadata": {},
5353
"outputs": [],
5454
"source": [
55-
"# Create Image Gentation model Object\n",
55+
"# Create Image Generation model Object\n",
5656
"generator = VertexAIImageGeneratorChat()"
5757
]
5858
},
@@ -140,11 +140,11 @@
140140
},
141141
{
142142
"cell_type": "code",
143-
"execution_count": 11,
143+
"execution_count": null,
144144
"metadata": {},
145145
"outputs": [],
146146
"source": [
147-
"# Create Image Gentation model Object\n",
147+
"# Create Image Generation model Object\n",
148148
"generator = VertexAIImageGeneratorChat()\n",
149149
"\n",
150150
"# Provide a text input for image\n",
@@ -244,7 +244,7 @@
244244
},
245245
{
246246
"cell_type": "code",
247-
"execution_count": 19,
247+
"execution_count": null,
248248
"metadata": {},
249249
"outputs": [
250250
{
@@ -268,10 +268,10 @@
268268
}
269269
],
270270
"source": [
271-
"# use image egenarted in Image Generation Section\n",
271+
"# use image generated in Image Generation Section\n",
272272
"img_base64 = generated_image[\"image_url\"][\"url\"]\n",
273273
"response = model.invoke(img_base64)\n",
274-
"print(f\"Generated Cpation : {response}\")\n",
274+
"print(f\"Generated Caption : {response}\")\n",
275275
"\n",
276276
"# Convert base64 string to Image\n",
277277
"img = Image.open(\n",

0 commit comments

Comments
Β (0)