Skip to content

Commit 17ab915

Browse files
Merge pull request #2183 from tilakrayal:patch-11
PiperOrigin-RevId: 519776879
2 parents 6c40ee3 + 2b4e2fd commit 17ab915

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/en/tutorials/images/classification.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,10 @@
151151
"outputs": [],
152152
"source": [
153153
"import pathlib\n",
154+
"\n",
154155
"dataset_url = \"https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz\"\n",
155-
"data_dir = tf.keras.utils.get_file('flower_photos', origin=dataset_url, untar=True)\n",
156-
"data_dir = pathlib.Path(data_dir)"
156+
"data_dir = tf.keras.utils.get_file('flower_photos.tar', origin=dataset_url, extract=True)\n",
157+
"data_dir = pathlib.Path(data_dir).with_suffix('')"
157158
]
158159
},
159160
{

0 commit comments

Comments
 (0)