Skip to content

Commit a6665d9

Browse files
authored
Merge pull request #765 from wu-victor/patch-1
Refactor if else statement for demo path
2 parents 21455a2 + e7e6db8 commit a6665d9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

09_pytorch_model_deployment.ipynb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,12 +3111,9 @@
31113111
"# Remove files that might already exist there and create new directory\n",
31123112
"if foodvision_mini_demo_path.exists():\n",
31133113
" shutil.rmtree(foodvision_mini_demo_path)\n",
3114-
" foodvision_mini_demo_path.mkdir(parents=True, # make the parent folders?\n",
3115-
" exist_ok=True) # create it even if it already exists?\n",
3116-
"else:\n",
3117-
" # If the file doesn't exist, create it anyway\n",
3118-
" foodvision_mini_demo_path.mkdir(parents=True, \n",
3119-
" exist_ok=True)\n",
3114+
"# If the file doesn't exist, create it anyway\n",
3115+
"foodvision_mini_demo_path.mkdir(parents=True, \n",
3116+
" exist_ok=True)\n",
31203117
" \n",
31213118
"# Check what's in the folder\n",
31223119
"!ls demos/foodvision_mini/"

0 commit comments

Comments
 (0)