Skip to content

Commit a52be42

Browse files
Updated to fix bug in PIL libraries thumbnail feature (#970)
1 parent 7e5cc4c commit a52be42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/Spatial_understanding_3d.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,7 @@
18741874
],
18751875
"source": [
18761876
"img = Image.open(\"traj_00.jpg\")\n",
1877-
"img = img.thumbnail((800, 800))\n",
1877+
"img.thumbnail((800, 800))\n",
18781878
"\n",
18791879
"prompt = \"\"\"\n",
18801880
"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,7 +1924,7 @@
19241924
"outputs": [],
19251925
"source": [
19261926
"img = Image.open(\"traj_01.jpg\")\n",
1927-
"img = img.thumbnail((800, 800))\n",
1927+
"img.thumbnail((800, 800))\n",
19281928
"\n",
19291929
"prompt = \"\"\"\n",
19301930
"Point to the the blue brush and a list of points covering the region of particles with no more than 10 items.\n",
@@ -2806,7 +2806,7 @@
28062806
"source": [
28072807
"# Load and resize the image of a shoe bench.\n",
28082808
"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",
28102810
"\n",
28112811
"# Analyze the image using Gemini.\n",
28122812
"# Ask Gemini to point to several objects on the shoe bench.\n",
@@ -3091,7 +3091,7 @@
30913091
"source": [
30923092
"# Load and resize image of a different view of the same scene.\n",
30933093
"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",
30953095
"\n",
30963096
"image_response_1 = client.models.generate_content(\n",
30973097
" model=MODEL_ID,\n",

0 commit comments

Comments
 (0)