Skip to content

Commit 3622908

Browse files
committed
Tiny fix for Google Colab.
1 parent 0495ab1 commit 3622908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,10 @@ your Google account.
243243
Then you need to execute the following commands at the top of the Notebook,
244244
which clones the contents of this repository to your work-directory on Colab.
245245

246+
# Clone the repository from GitHub to Google Colab's temporary drive.
246247
import os
247248
work_dir = "/content/TensorFlow-Tutorials/"
248-
if os.getcwd() != work_dir:
249+
if not os.path.exists(work_dir):
249250
!git clone https://github.com/Hvass-Labs/TensorFlow-Tutorials.git
250251
os.chdir(work_dir)
251252

0 commit comments

Comments
 (0)