mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-08 12:31:49 +00:00
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:
parent
84c5048cb8
commit
d348cfe968
@ -25,7 +25,7 @@
|
||||
"- [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",
|
||||
"- [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",
|
||||
"execution_count": 3,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Create Image Gentation model Object\n",
|
||||
"# Create Image Generation model Object\n",
|
||||
"generator = VertexAIImageGeneratorChat()"
|
||||
]
|
||||
},
|
||||
@ -140,11 +140,11 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Create Image Gentation model Object\n",
|
||||
"# Create Image Generation model Object\n",
|
||||
"generator = VertexAIImageGeneratorChat()\n",
|
||||
"\n",
|
||||
"# Provide a text input for image\n",
|
||||
@ -244,7 +244,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -268,10 +268,10 @@
|
||||
}
|
||||
],
|
||||
"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",
|
||||
"response = model.invoke(img_base64)\n",
|
||||
"print(f\"Generated Cpation : {response}\")\n",
|
||||
"print(f\"Generated Caption : {response}\")\n",
|
||||
"\n",
|
||||
"# Convert base64 string to Image\n",
|
||||
"img = Image.open(\n",
|
||||
|
Loading…
Reference in New Issue
Block a user