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.
This commit is contained in:
Ammar Younas 2025-08-04 19:52:05 +05:00 committed by GitHub
parent 84c5048cb8
commit d348cfe968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@
"- [VertexAIImageEditorChat](#image-editing) : Edit an entire uploaded or generated image with a text prompt.\n", "- [VertexAIImageEditorChat](#image-editing) : Edit an entire uploaded or generated image with a text prompt.\n",
"- [VertexAIImageCaptioning](#image-captioning) : Get text descriptions of images with visual captioning.\n", "- [VertexAIImageCaptioning](#image-captioning) : Get text descriptions of images with visual captioning.\n",
"- [VertexAIVisualQnAChat](#visual-question-answering-vqa) : Get answers to a question about an image with Visual Question Answering (VQA).\n", "- [VertexAIVisualQnAChat](#visual-question-answering-vqa) : Get answers to a question about an image with Visual Question Answering (VQA).\n",
" * NOTE : Currently we support only only single-turn chat for Visual QnA (VQA)" " * NOTE : Currently we support only single-turn chat for Visual QnA (VQA)"
] ]
}, },
{ {
@ -48,11 +48,11 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# Create Image Gentation model Object\n", "# Create Image Generation model Object\n",
"generator = VertexAIImageGeneratorChat()" "generator = VertexAIImageGeneratorChat()"
] ]
}, },
@ -140,11 +140,11 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 11, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# Create Image Gentation model Object\n", "# Create Image Generation model Object\n",
"generator = VertexAIImageGeneratorChat()\n", "generator = VertexAIImageGeneratorChat()\n",
"\n", "\n",
"# Provide a text input for image\n", "# Provide a text input for image\n",
@ -244,7 +244,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 19, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -268,10 +268,10 @@
} }
], ],
"source": [ "source": [
"# use image egenarted in Image Generation Section\n", "# use image generated in Image Generation Section\n",
"img_base64 = generated_image[\"image_url\"][\"url\"]\n", "img_base64 = generated_image[\"image_url\"][\"url\"]\n",
"response = model.invoke(img_base64)\n", "response = model.invoke(img_base64)\n",
"print(f\"Generated Cpation : {response}\")\n", "print(f\"Generated Caption : {response}\")\n",
"\n", "\n",
"# Convert base64 string to Image\n", "# Convert base64 string to Image\n",
"img = Image.open(\n", "img = Image.open(\n",