|
1874 | 1874 | ], |
1875 | 1875 | "source": [ |
1876 | 1876 | "img = Image.open(\"traj_00.jpg\")\n", |
1877 | | - "img = img.thumbnail((800, 800))\n", |
| 1877 | + "img.thumbnail((800, 800))\n", |
1878 | 1878 | "\n", |
1879 | 1879 | "prompt = \"\"\"\n", |
1880 | 1880 | "Point to the left hand and the handle of the blue screwdriver, and a trajectory of 6 points connecting them with no more than 10 items.\n", |
|
1924 | 1924 | "outputs": [], |
1925 | 1925 | "source": [ |
1926 | 1926 | "img = Image.open(\"traj_01.jpg\")\n", |
1927 | | - "img = img.thumbnail((800, 800))\n", |
| 1927 | + "img.thumbnail((800, 800))\n", |
1928 | 1928 | "\n", |
1929 | 1929 | "prompt = \"\"\"\n", |
1930 | 1930 | "Point to the the blue brush and a list of points covering the region of particles with no more than 10 items.\n", |
|
2806 | 2806 | "source": [ |
2807 | 2807 | "# Load and resize the image of a shoe bench.\n", |
2808 | 2808 | "img_0 = Image.open(\"shoe_bench_0.jpg\")\n", |
2809 | | - "img_0 = img_0.thumbnail((800, 800))\n", |
| 2809 | + "img_0.thumbnail((800, 800))\n", |
2810 | 2810 | "\n", |
2811 | 2811 | "# Analyze the image using Gemini.\n", |
2812 | 2812 | "# Ask Gemini to point to several objects on the shoe bench.\n", |
|
3091 | 3091 | "source": [ |
3092 | 3092 | "# Load and resize image of a different view of the same scene.\n", |
3093 | 3093 | "img_1 = Image.open(\"shoe_bench_1.jpg\")\n", |
3094 | | - "img_1 = img_1.thumbnail((800, 800))\n", |
| 3094 | + "img_1.thumbnail((800, 800))\n", |
3095 | 3095 | "\n", |
3096 | 3096 | "image_response_1 = client.models.generate_content(\n", |
3097 | 3097 | " model=MODEL_ID,\n", |
|
0 commit comments