|
25 | 25 | "- [VertexAIImageEditorChat](#image-editing) : Edit an entire uploaded or generated image with a text prompt.\n",
|
26 | 26 | "- [VertexAIImageCaptioning](#image-captioning) : Get text descriptions of images with visual captioning.\n",
|
27 | 27 | "- [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)" |
29 | 29 | ]
|
30 | 30 | },
|
31 | 31 | {
|
|
48 | 48 | },
|
49 | 49 | {
|
50 | 50 | "cell_type": "code",
|
51 |
| - "execution_count": 3, |
| 51 | + "execution_count": null, |
52 | 52 | "metadata": {},
|
53 | 53 | "outputs": [],
|
54 | 54 | "source": [
|
55 |
| - "# Create Image Gentation model Object\n", |
| 55 | + "# Create Image Generation model Object\n", |
56 | 56 | "generator = VertexAIImageGeneratorChat()"
|
57 | 57 | ]
|
58 | 58 | },
|
|
140 | 140 | },
|
141 | 141 | {
|
142 | 142 | "cell_type": "code",
|
143 |
| - "execution_count": 11, |
| 143 | + "execution_count": null, |
144 | 144 | "metadata": {},
|
145 | 145 | "outputs": [],
|
146 | 146 | "source": [
|
147 |
| - "# Create Image Gentation model Object\n", |
| 147 | + "# Create Image Generation model Object\n", |
148 | 148 | "generator = VertexAIImageGeneratorChat()\n",
|
149 | 149 | "\n",
|
150 | 150 | "# Provide a text input for image\n",
|
|
244 | 244 | },
|
245 | 245 | {
|
246 | 246 | "cell_type": "code",
|
247 |
| - "execution_count": 19, |
| 247 | + "execution_count": null, |
248 | 248 | "metadata": {},
|
249 | 249 | "outputs": [
|
250 | 250 | {
|
|
268 | 268 | }
|
269 | 269 | ],
|
270 | 270 | "source": [
|
271 |
| - "# use image egenarted in Image Generation Section\n", |
| 271 | + "# use image generated in Image Generation Section\n", |
272 | 272 | "img_base64 = generated_image[\"image_url\"][\"url\"]\n",
|
273 | 273 | "response = model.invoke(img_base64)\n",
|
274 |
| - "print(f\"Generated Cpation : {response}\")\n", |
| 274 | + "print(f\"Generated Caption : {response}\")\n", |
275 | 275 | "\n",
|
276 | 276 | "# Convert base64 string to Image\n",
|
277 | 277 | "img = Image.open(\n",
|
|
0 commit comments